1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-23 16:55:23 +01:00
slate/.travis.yml

32 lines
600 B
YAML
Raw Permalink Normal View History

2016-06-15 12:07:12 -07:00
language: node_js
node_js: [node]
before_install:
# Export the C++11 compiler.
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
cache: yarn
env:
2018-11-09 16:39:56 -08:00
# Do multiple runs for testing and linting.
matrix:
2018-11-09 16:39:56 -08:00
- TEST_TYPE=test
- TEST_TYPE=lint:eslint
- TEST_TYPE=lint:prettier
before_script:
2018-11-09 16:39:56 -08:00
# When linting, build the dependencies so they can be resolved.
- |
set -e
if [[ $TEST_TYPE == 'lint:eslint' ]]; then
yarn build
fi
set +e
script:
# Run testing or linting depending on the environment.
- |
set -e
yarn $TEST_TYPE
set +e