Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Add PHANTOMJS_VERSION env var & document in sample travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Mar 21, 2017
1 parent 6f7bb96 commit 2469393
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions sample_files/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ addons:
env:
global:
- VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- PHANTOMJS_VERSION="latest"
# The above line controls the PhantomJS version that is used for JS testing.
# It is not necessary to include this value unless you are altering the default.
# Use `OS` to skip the PhantomJS upgrade & use the system version instead.
- TRANSIFEX_USER='[email protected]'
# This line contains the encrypted transifex password
# To encrypt transifex password, install travis ruby utils with:
Expand Down
8 changes: 5 additions & 3 deletions travis/travis_install_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ npm install -g less less-plugin-clean-css


# Update PhantomJS (v10 compat)
npm install --prefix ${TRAVIS_BUILD_DIR} [email protected]
ln -s "${TRAVIS_BUILD_DIR}/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs" "${HOME}/maintainer-quality-tools/travis/phantomjs"

if [ "${PHANTOMJS_VERSION}" != "OS" ];
then
npm install --prefix ${TRAVIS_BUILD_DIR} "phantomjs-prebuilt@${PHANTOMJS_VERSION:=latest}"
ln -s "${TRAVIS_BUILD_DIR}/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs" "${HOME}/maintainer-quality-tools/travis/phantomjs"
fi

# For backward compatibility, take version from parameter if it's not globally set
if [ "x${VERSION}" == "x" ] ; then
Expand Down

0 comments on commit 2469393

Please sign in to comment.