Skip to content

Commit 2ab93c2

Browse files
author
Maxime Lafarie
committed
Improve travic script
1 parent fb400e9 commit 2ab93c2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ language: node_js
1111
node_js:
1212
- stable
1313
before_install:
14-
- npm i -g npm
15-
- npm i -g live-server@1
16-
- npm i -g node-gyp@3
14+
- echo "$TRAVIS_BRANCH"
15+
- echo "$TRAVIS_PULL_REQUEST"
16+
- export DISPLAY=:99.0
17+
- sh -e /etc/init.d/xvfb start
18+
- export CHROME_BIN=chromium-browser
1719
install:
1820
- npm install
1921
script:
22+
- npm run lint
2023
- npm run test
21-
before_script:
22-
- export DISPLAY=:99.0
23-
- sh -e /etc/init.d/xvfb start
24-
- sleep 3
25-
after_success:
26-
- npm run ghpages
24+
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then npm run ghpages; fi
2725
deploy:
2826
provider: pages
2927
skip_cleanup: true

0 commit comments

Comments
 (0)