2015-10-08 09:59:25 +08:00
|
|
|
env:
|
|
|
|
global:
|
2015-10-08 10:26:45 +08:00
|
|
|
- NYLAS_ACCESS_TOKEN=cb200be7c921f73a1c35930f6a4ac8758b271be0
|
2015-10-08 09:59:25 +08:00
|
|
|
|
2015-11-24 09:16:20 +08:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2015-10-08 10:36:28 +08:00
|
|
|
|
2015-10-08 09:42:48 +08:00
|
|
|
matrix:
|
|
|
|
include:
|
2015-11-24 09:16:20 +08:00
|
|
|
# Wants a c++11 compiler
|
2015-10-08 09:42:48 +08:00
|
|
|
- os: linux
|
2015-11-22 14:20:27 +08:00
|
|
|
env: NODE_VERSION=0.10 CC=gcc-4.8 CXX=g++-4.8 NYLAS_HOME=/home/travis/.nylas
|
2015-11-24 09:16:20 +08:00
|
|
|
- os: linux
|
2015-11-22 14:20:27 +08:00
|
|
|
env: NODE_VERSION=0.12 CC=gcc-4.8 CXX=g++-4.8 NYLAS_HOME=/home/travis/.nylas
|
2015-10-08 09:51:30 +08:00
|
|
|
- os: linux
|
2015-11-22 14:20:27 +08:00
|
|
|
env: NODE_VERSION=4.2 CC=gcc-4.8 CXX=g++-4.8 NYLAS_HOME=/home/travis/.nylas
|
2015-11-24 09:16:20 +08:00
|
|
|
- os: linux
|
2015-11-22 14:20:27 +08:00
|
|
|
env: NODE_VERSION=5 CC=gcc-4.8 CXX=g++-4.8 NYLAS_HOME=/home/travis/.nylas
|
2015-10-08 09:42:48 +08:00
|
|
|
- os: osx
|
2015-10-08 09:51:30 +08:00
|
|
|
env: NODE_VERSION=0.10
|
|
|
|
- os: osx
|
2015-11-24 09:16:20 +08:00
|
|
|
env: NODE_VERSION=0.12 CC=clang CXX=clang++
|
|
|
|
# osx already supports c++11 in Apple LLVM
|
|
|
|
- os: osx
|
|
|
|
env: NODE_VERSION=4.2 CC=clang CXX=clang++
|
|
|
|
- os: osx
|
|
|
|
env: NODE_VERSION=5 CC=clang CXX=clang++
|
2015-10-08 09:42:48 +08:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2015-10-08 09:51:30 +08:00
|
|
|
install:
|
2015-11-24 09:16:20 +08:00
|
|
|
- echo $CC
|
|
|
|
- echo $CXX
|
|
|
|
- clang --version
|
|
|
|
- if [ "$CC" = "gcc-4.8" ]; then gcc-4.8 -v; else gcc -v; fi
|
2015-10-08 09:51:30 +08:00
|
|
|
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
|
|
|
|
- source /tmp/.nvm/nvm.sh
|
|
|
|
- nvm install $NODE_VERSION
|
2015-11-24 09:16:20 +08:00
|
|
|
- nvm use --delete-prefix $NODE_VERSION
|
2015-10-08 09:51:30 +08:00
|
|
|
|
2015-11-22 12:04:51 +08:00
|
|
|
before_script:
|
2015-11-22 12:09:10 +08:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
|
|
export DISPLAY=:99.0;
|
|
|
|
sh -e /etc/init.d/xvfb start;
|
|
|
|
fi
|
2015-11-22 12:04:51 +08:00
|
|
|
|
2015-10-08 09:42:48 +08:00
|
|
|
script: script/cibuild
|
|
|
|
|
2015-10-06 04:28:10 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
2015-11-24 09:16:20 +08:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2015-10-06 04:28:10 +08:00
|
|
|
packages:
|
2015-10-08 09:52:42 +08:00
|
|
|
- build-essential
|
2015-11-24 09:16:20 +08:00
|
|
|
- clang
|
|
|
|
- fakeroot
|
|
|
|
- g++-4.8
|
2015-10-08 09:52:42 +08:00
|
|
|
- git
|
2015-10-08 09:42:48 +08:00
|
|
|
- libgnome-keyring-dev
|
2015-11-22 11:45:55 +08:00
|
|
|
- xvfb
|