Skip to content

Commit

Permalink
Chore: Replace PhantomJS with headless Chrome (puppeteer) (styleguidi…
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek authored and sapegin committed Oct 2, 2017
1 parent 5ad09e4 commit a9d184f
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 125 deletions.
22 changes: 7 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,9 @@ node_js:
cache:
directories:
- node_modules
- travis_phantomjs
before_install:
# Upgrade npm
- if [[ `npm -v` != 5* ]]; then npm install -g npm@latest; fi
# Upgrade PhantomJS
- |
export PHANTOMJS_VERSION=2.1.1
export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH
if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then
rm -rf $PWD/travis_phantomjs
mkdir -p $PWD/travis_phantomjs
wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
tar -xvf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs
fi
phantomjs -v
script:
# Run lint
- npm run lint
Expand All @@ -41,9 +29,13 @@ script:
- npm run build:customised
- npm run build:sections
# Check that examples really works: no JS errors on load
- npm run phantomjs
- npm run phantomjs:customised
- npm run phantomjs:sections
- |
if [[ "$TRAVIS_NODE_VERSION" == "8" ]]; then
npm run test:browser:pre
npm run test:browser
npm run test:browser:customised
npm run test:browser:sections
fi
after_success:
# Make release with semantic-release if needed
- npm run semantic-release
Expand Down
Loading

0 comments on commit a9d184f

Please sign in to comment.