mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
Use different build for test/lint/benchmarks
This commit is contained in:
parent
37d99e0edb
commit
42b5e893a3
19
.travis.yml
19
.travis.yml
@ -1,12 +1,21 @@
|
||||
language: node_js
|
||||
env:
|
||||
matrix:
|
||||
- TEST_TYPE=test
|
||||
- TEST_TYPE=lint
|
||||
- TEST_TYPE=benchmarks
|
||||
script:
|
||||
- npm test
|
||||
- npm run benchmarks
|
||||
- npm run lint
|
||||
- |
|
||||
if [ "$TEST_TYPE" = test ]; then
|
||||
npm test
|
||||
elif [ "$TEST_TYPE" = benchmarks ]; then
|
||||
npm run benchmarks
|
||||
elif [ "$TEST_TYPE" = lint ]; then
|
||||
npm run lint
|
||||
fi
|
||||
# Slate is compiled with babel and run in the browser
|
||||
node_js:
|
||||
- "node"
|
||||
- "6"
|
||||
- "4"
|
||||
# Compiling package microtime requires C++11 compiler. Benchmarks will
|
||||
# automatically use microtime if installed.
|
||||
addons:
|
||||
|
Loading…
x
Reference in New Issue
Block a user