Files
alfresco-ng2-components/.travis.yml
T
Eugenio Romano 0b246b8211 Speed up build (#1852)
* single build webpack

* fix demo shell test
2017-05-25 15:12:46 +01:00

34 lines
713 B
YAML

language: node_js
dist: trusty
sudo: false
node_js:
- "5"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
env:
matrix:
- MODULE=ng2-components
- MODULE=ng2-demo-shell
script:
- if ([ "$MODULE" == "ng2-components" ]); then
(./scripts/npm-build-all.sh -t;);
fi
- if ([ "$MODULE" == "ng2-demo-shell" ]); then
(cd demo-shell-ng2 && npm install && npm run test || exit 1;);
fi
# Send coverage data to Coveralls
after_success:
bash <(curl -s https://codecov.io/bash) -X gcov
cache:
directories:
- ./node_modules/material-design-lite
- ./node_modules/material-design-icons
- demo-shell-ng2/node_modules
- ng2-components/node_modules