phantomjs only for npm

pull/5404/head
Jens Ulferts 8 years ago
parent 600aac91f3
commit 6c225ef0d9
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 6
      .travis.yml
  2. 8
      script/ci_setup.sh

@ -83,12 +83,6 @@ before_install:
# Install Node LTS Boron (6.9.1)
- "nvm install 6.9.1"
# We need phantomjs 2.0 to get tests passing
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
bundler_args: --binstubs --without development production docker
before_script:

@ -72,3 +72,11 @@ else
run "mkdir -p app/assets/stylesheets/bundles"
run "touch app/assets/javascripts/bundles/openproject-core-app.css"
fi
if [ $1 = 'npm' ]; then
# We need phantomjs 2.0 to get tests passing
run "mkdir travis-phantomjs"
run "wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2"
run "tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs"
run "export PATH=$PWD/travis-phantomjs:$PATH"
fi

Loading…
Cancel
Save