We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb400e9 commit 2ab93c2Copy full SHA for 2ab93c2
.travis.yml
@@ -11,19 +11,17 @@ language: node_js
11
node_js:
12
- stable
13
before_install:
14
- - npm i -g npm
15
- - npm i -g live-server@1
16
- - npm i -g node-gyp@3
+ - echo "$TRAVIS_BRANCH"
+ - echo "$TRAVIS_PULL_REQUEST"
+ - export DISPLAY=:99.0
17
+ - sh -e /etc/init.d/xvfb start
18
+ - export CHROME_BIN=chromium-browser
19
install:
20
- npm install
21
script:
22
+ - npm run lint
23
- npm run test
-before_script:
- - export DISPLAY=:99.0
- - sh -e /etc/init.d/xvfb start
24
- - sleep 3
25
-after_success:
26
- - npm run ghpages
+ - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then npm run ghpages; fi
27
deploy:
28
provider: pages
29
skip_cleanup: true
0 commit comments