From 30521c8a1fa2d661c7dbeaeb194192afbb31217e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 23 Aug 2017 23:24:50 +0200 Subject: [PATCH] build: initial .travis.yml implementation Refs: https://github.com/ayojs/ayo/pull/14 Refs: https://github.com/ayojs/ayo/pull/75 Co-authored-by: Jeremiah Senkpiel --- .gitignore | 1 + .travis.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index e6b25de69040fb..27e22ef6183f61 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ !.mailmap !.nycrc !.remarkrc +!.travis.yml core vgcore.* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000000..22e0346be8ea50 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: cpp +compiler: + - clang +sudo: false +cache: ccache +matrix: + include: + - os: linux + node_js: "8" + script: + - NODE=$(which node) make lint-ci + - os: linux + install: + - ./configure + - make -j2 V= + script: + - make -j2 test-ci + - os: osx + install: + - ./configure + - make -j2 V= + script: + - make -j2 test-ci +before_install: + - export HOMEBREW_NO_AUTO_UPDATE=1 # work around https://github.com/travis-ci/travis-ci/issues/7456 + - if [ $TRAVIS_OS_NAME = osx ]; then brew install ccache; fi + - export PATH="/usr/local/opt/ccache/libexec:$PATH" + - export CXX="ccache clang++ -Qunused-arguments" + - export CC="ccache clang -Qunused-arguments" + - export JOBS=2