27 lines
744 B
YAML
27 lines
744 B
YAML
os:
|
|
- linux
|
|
- osx
|
|
sudo: required
|
|
language: node_js
|
|
node_js:
|
|
- '4'
|
|
- '6'
|
|
- '8'
|
|
- '10'
|
|
before_install:
|
|
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CC=clang++; export CXX=clang++; export CXXFLAGS=-std=c++11; fi'
|
|
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink pkg-config; fi'
|
|
- 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=g++-4.8; fi'
|
|
before_script:
|
|
- export NPMVERSION=$(echo "$($(which npm) -v)"|cut -c1)
|
|
- 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm@5; fi'
|
|
- npm -v
|
|
- npm install winston@2.3.1
|
|
- 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production'
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|