Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
language: c++
compiler:
- clang
- gcc
env:
- TRAVIS_NODE_VERSION="4"
- TRAVIS_NODE_VERSION="6"
- TRAVIS_NODE_VERSION="7"
os:
- linux
- osx
matrix:
fast_finish: true
sudo: false
cache:
directories:
- node_modules
- $HOME/.npm
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
before_install:
- echo "$TRAVIS_NODE_VERSION"
- export "PATH=./node_modules/.bin:$PWD/node_modules/.bin:$HOME/.local/bin:$PATH"
# coveralls
- pip install --user cpp-coveralls
# compilers
- if [ "$CXX" = "g++" -a "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="g++-4.9" CC="gcc-4.9" AR="gcc-ar-4.9" RANLIB="gcc-ranlib-4.9" NM="gcc-nm-4.9" ; fi
- if [ "$CXX" = "clang++" ]; then export NPMOPT=--clang=1 ; fi
# node versions
- rm -rf ~/.nvm
- git clone --branch v0.33.2 https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install "$TRAVIS_NODE_VERSION"
Copy link
Member

@jasongin jasongin May 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest using nvs instead so that Node-ChakraCore can be included in the matrix. Also maybe the latest Node-V8 nightly build. See https://github.com/jasongin/nvs/blob/master/doc/CI.md

Or I can make that change later.

- node --version
- export CFLAGS="$CFLAGS -O3 --coverage" LDFLAGS="$LDFLAGS --coverage"
- echo "CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
install:
- npm install $NPMOPT
Copy link
Member

@jasongin jasongin May 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npm install is not really needed, since after #44 there are no package dependencies. But I guess we could keep it in case any dependencies are added in the future?

script:
- npm test $NPMOPT
after_success:
- cpp-coveralls --gcov-options '\-lp' --build-root test/build --exclude test
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# https://www.appveyor.com/docs/lang/nodejs-iojs/#testing-under-multiple-versions-of-nodejs-or-iojs
environment:
fast_finish: true
matrix:
- nodejs_version: "7"
- nodejs_version: "4"
- nodejs_version: "6"

platform:
- x86
- x64

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- node -p process.arch
- node -p process.version

test_script:
- npm test

build: off

version: "{build}"

cache:
- node_modules