Skip to content

Commit

Permalink
Upgrade PhantomJS to 2.x on Travis
Browse files Browse the repository at this point in the history
- Fixes #60
  • Loading branch information
jhedstrom committed Nov 11, 2016
1 parent 4edc413 commit 947c3ed
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,24 @@ before_script:
# Export web server URL for browser tests.
- export SIMPLETEST_BASE_URL=http://localhost:8888

# Upgrade PhantomJS to 2.x.
# @see https://github.com/travis-ci/travis-ci/issues/3225
# @see https://github.com/testdouble/present/commit/461ac72cdcfc4e87d84711550a638fbc12154567
# @see https://github.com/drupalcommerce/commerce/blob/8.x-2.x/.travis.yml
- export PHANTOMJS_VERSION=2.1.1
- 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
- phantomjs --version

# Start PhantomJS
- phantomjs --ssl-protocol=any --ignore-ssl-errors=true ./vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 &

script:
# Coding standards.
- $HOME/.composer/vendor/bin/phpcs --report=full --standard=Drupal $TESTDIR
# Run the PHPUnit tests which also include the kernel tests.
- ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE_NAME
- ./vendor/phpunit/phpunit/phpunit -c ./core/phpunit.xml.dist ./modules/$MODULE_NAME -vvv
# Run legacy simpletests.
- php core/scripts/run-tests.sh --color --verbose --php `which php` --directory modules/$MODULE_NAME/src/Tests --dburl $SIMPLETEST_DB --url $SIMPLETEST_BASE_URL --sqlite ./.db.sqlite

0 comments on commit 947c3ed

Please sign in to comment.