mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +08:00
0e10ccbde9
Summary: - Remove nylas-long-connection.coffee duplicate code from sync worker package and replace with delta-streaming-connection which uses NylasAPI.longConnection - Replacement for XHR will come in another diff -- still need to clean up and fix some edge cases Test Plan: - TODO! Will add test coverage for NylasLongConnection and DeltaStreamingConnection Reviewers: evan, bengotow Reviewed By: evan, bengotow Differential Revision: https://phab.nylas.com/D2875
80 lines
2.7 KiB
YAML
80 lines
2.7 KiB
YAML
sudo: false
|
|
|
|
git:
|
|
submodules: false
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- build-essential
|
|
- clang
|
|
- fakeroot
|
|
- g++-4.8
|
|
- git
|
|
- libgnome-keyring-dev
|
|
- xvfb
|
|
- rpm
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- ci-test
|
|
- stable
|
|
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env: NODE_VERSION=0.12 CC=gcc-4.8 CXX=g++-4.8
|
|
- os: linux
|
|
env: NODE_VERSION=4.2 CC=gcc-4.8 CXX=g++-4.8 PUBLISH_BUILD=true
|
|
- os: linux
|
|
env: NODE_VERSION=5 CC=gcc-4.8 CXX=g++-4.8
|
|
- os: osx
|
|
env: NODE_VERSION=4.2 CC=clang CXX=clang++ PUBLISH_BUILD=true
|
|
|
|
before_install:
|
|
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
|
openssl aes-256-cbc -k "$DECRYPTION_PASSWORD" -in build/resources/ssh/nylas-n1-ci-ssh.openssl.enc -out nylas-n1-ci-ssh -d;
|
|
mv nylas-n1-ci-ssh ~/.ssh/id_rsa;
|
|
chmod 400 ~/.ssh/id_rsa;
|
|
ssh-keyscan github.com >> ~/.ssh/known_hosts;
|
|
git submodule update --init --recursive;
|
|
2>/dev/null 1>/dev/null openssl aes-256-cbc -K $encrypted_d583b56b822e_key -iv $encrypted_d583b56b822e_iv -in src/pro/encrypted_certificates/travis/travis-files.tar.enc -out src/pro/encrypted_certificates/travis/travis-files.tar -d;
|
|
mkdir build/resources/certs;
|
|
2>/dev/null 1>/dev/null tar xvf src/pro/encrypted_certificates/travis/travis-files.tar --directory=build/resources/certs/;
|
|
2>/dev/null 1>/dev/null source build/resources/certs/set_unix_env.sh;
|
|
fi
|
|
|
|
install:
|
|
- echo $CC
|
|
- echo $CXX
|
|
- clang --version
|
|
- if [ "$CC" = "gcc-4.8" ]; then gcc-4.8 -v; else gcc -v; fi
|
|
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
|
|
- source /tmp/.nvm/nvm.sh
|
|
- nvm install $NODE_VERSION
|
|
- nvm use --delete-prefix $NODE_VERSION
|
|
|
|
before_script:
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
export DISPLAY=:99.0;
|
|
sh -e /etc/init.d/xvfb start;
|
|
fi
|
|
|
|
script: script/cibuild
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- build/node_modules
|
|
|
|
# The NYLAS_GITHUB_OAUTH_TOKEN is overriden by build/resources/certs/set_unix_env.sh
|
|
env:
|
|
global:
|
|
- secure: O+XG3C/VnCfCVXTHudOQ6JMmBqrRHXh1j7jRwfQ3PYd27gm9BWNjvwlbWTLNcaar9gM00Pwi3rR8IujzJLlw3usZGWbJMLkz+aPYdOlbiDLhyMdIHwX4oI58d1eHx7m8Eun3qT3Y0VkO3blBNdWFWV4ebkfLZyygzXva4CDlSFtbeQYGy4ft76v7Au9uVlOUoV8f+juPx+0Jv+AtQmsY9Sf+6WbxrNaE9y2u2q1ks+XpjFn8Wt1f/xp/Vae0/MjJFpGIVfaUy+q7W8QQ0TyzSCM0eGtjxilS+BkGHjjvlLlMdCspRnZzpSJC+KkpEKLJrAPjR0DAfYMedWockEaIwGG8Onf90fXKG0nlvAg4WrWjnpr0q+V79zOU/yYD/kysLBYg6fYzv6uTvN7TzNaFkKaiQZvorI9P8w/wShGFHE4Y8JC5QU4CLI8q2qrkI38KKt3valIP4qxA/56aM0+D5roTecfh3Y40OcpqKZicpeNvuB1u2FmD2+oxLEb3MVnyfnVnDBP7Crp8/oLsIl/gGR/SVUEyLIimozugUySnCig1BEicygECvp6eRpEHryNrEvLKfxtppr3eWcRKQwnYwch4CaFwya0Lpc1dSA9NaOFQu0kR374s+fhqYgrkaCJevZd+ouKY+0Zt8gZ4CjJVhJ5YamwZAPG+obRd9G3xRM0=
|
|
- NYLAS_GITHUB_OAUTH_TOKEN=cb200be7c921f73a1c35930f6a4ac8758b271be0
|
|
|
|
notifications:
|
|
slack: nylas:Egem0aHuqMfkIlycPswxblzJ
|