presentations/highlight-js/.travis.yml

31 lines
575 B
YAML
Raw Normal View History

2018-12-07 08:48:05 -06:00
language: node_js
node_js:
- "lts/*"
- "node"
env:
-
- BROWSER=1
- BROWSER=1 NOCOMPRESS=1
script:
- |
export BUILD_PARAMS=""
if [ "x$BROWSER" = "x1" ]; then
export BUILD_PARAMS="$BUILD_PARAMS -t browser"
else
export BUILD_PARAMS="$BUILD_PARAMS -t node"
fi
if [ "x$NOCOMPRESS" = "x1" ]; then
export BUILD_PARAMS="$BUILD_PARAMS -n"
fi
node tools/build.js $BUILD_PARAMS
if [ "x$BROWSER" = "x1" ]; then
npm run test-browser
else
npm run test
fi
sudo: false # Use container-based architecture