You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
643 B
37 lines
643 B
5 years ago
|
language: node_js
|
||
|
|
||
|
node_js:
|
||
|
- "8"
|
||
|
|
||
|
env:
|
||
|
matrix:
|
||
|
- TEST_TYPE=lint
|
||
|
- TEST_TYPE=build
|
||
|
- TEST_TYPE=test-all
|
||
|
- TEST_TYPE=test-dist
|
||
|
|
||
|
addons:
|
||
|
apt:
|
||
|
packages:
|
||
|
- xvfb
|
||
|
|
||
|
install:
|
||
|
- export DISPLAY=':99.0'
|
||
|
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
||
|
- npm install
|
||
|
|
||
|
script:
|
||
|
- |
|
||
|
if [ "$TEST_TYPE" = lint ]; then
|
||
|
npm run lint
|
||
|
elif [ "$TEST_TYPE" = build ]; then
|
||
|
npm run build
|
||
|
elif [ "$TEST_TYPE" = test-all ]; then
|
||
|
npm run test:all
|
||
|
elif [ "$TEST_TYPE" = test-dist ]; then
|
||
|
npm run site
|
||
|
mv dist/* ./
|
||
|
php -S localhost:8000 &
|
||
|
DEBUG=* npm test .e2e.js
|
||
|
fi
|