File tree Expand file tree Collapse file tree 5 files changed +212
-125
lines changed Expand file tree Collapse file tree 5 files changed +212
-125
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,9 @@ node_js:
6
6
cache :
7
7
directories :
8
8
- node_modules
9
- - travis_phantomjs
10
9
before_install :
11
10
# Upgrade npm
12
11
- if [[ `npm -v` != 5* ]]; then npm install -g npm@latest; fi
13
- # Upgrade PhantomJS
14
- - |
15
- export PHANTOMJS_VERSION=2.1.1
16
- export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
17
- if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then
18
- rm -rf $PWD/travis_phantomjs
19
- mkdir -p $PWD/travis_phantomjs
20
- wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
21
- tar -xvf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs
22
- fi
23
- phantomjs -v
24
12
script :
25
13
# Run lint
26
14
- npm run lint
@@ -41,9 +29,13 @@ script:
41
29
- npm run build:customised
42
30
- npm run build:sections
43
31
# Check that examples really works: no JS errors on load
44
- - npm run phantomjs
45
- - npm run phantomjs:customised
46
- - npm run phantomjs:sections
32
+ - |
33
+ if [[ "$TRAVIS_NODE_VERSION" == "8" ]]; then
34
+ npm run test:browser:pre
35
+ npm run test:browser
36
+ npm run test:browser:customised
37
+ npm run test:browser:sections
38
+ fi
47
39
after_success :
48
40
# Make release with semantic-release if needed
49
41
- npm run semantic-release
You can’t perform that action at this time.
0 commit comments