2016-06-15 12:07:12 -07:00
|
|
|
language: node_js
|
2016-11-01 15:20:04 +01:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- TEST_TYPE=test
|
|
|
|
- TEST_TYPE=lint
|
|
|
|
- TEST_TYPE=benchmarks
|
2016-11-01 15:02:07 +01:00
|
|
|
script:
|
2016-11-01 15:20:04 +01:00
|
|
|
- |
|
|
|
|
if [ "$TEST_TYPE" = test ]; then
|
|
|
|
npm test
|
|
|
|
elif [ "$TEST_TYPE" = benchmarks ]; then
|
2016-11-03 10:34:10 +01:00
|
|
|
npm run perf
|
2016-11-01 15:20:04 +01:00
|
|
|
elif [ "$TEST_TYPE" = lint ]; then
|
|
|
|
npm run lint
|
|
|
|
fi
|
|
|
|
# Slate is compiled with babel and run in the browser
|
2016-06-15 12:07:12 -07:00
|
|
|
node_js:
|
2016-07-15 10:01:38 -07:00
|
|
|
- "node"
|
2016-10-25 00:06:17 +02:00
|
|
|
# Compiling package microtime requires C++11 compiler. Benchmarks will
|
|
|
|
# automatically use microtime if installed.
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.8
|
|
|
|
before_install:
|
|
|
|
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
|