forked from ivmartel/dwv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 879 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# not using sudo
sudo: false
language: node_js
node_js:
- lts/*
# setup the travis token
env:
global:
- secure: jWTxnnLGmoM+j3148tIF2SJMEyub2j9kmR15vEKVeP6BbUvNgWH9jTSwf6Ddv3qjbAb3D8p9nhYBOZgRub1stwjWCH+DS17AoKFeRVj4Q8Sf0XBHGzJbn0FkstilVmGv3Zr/FVmDSEm1xSSHanWCUQX0uH9r/XB8z7khp4pLryo=
# main
script:
- yarn run lint
- yarn run test-ci --coverage --verbose
- yarn run build
after_success:
# send coverage to coveralls
- grunt coveralls
# update gh-page only if not a pull request and if branch master or develop
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ]; then
chmod +x ./resources/scripts/update-gh-pages.sh; "./resources/scripts/update-gh-pages.sh";
else echo "Not deploying artifacts for branch $TRAVIS_BRANCH"; fi
else echo "Not deploying artifacts for pull request"; fi