mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Use another approach to install chrome
This commit is contained in:
parent
058566e731
commit
c8617bacea
27
.travis.yml
27
.travis.yml
|
@ -15,11 +15,12 @@ branches:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- nvm install 7
|
- nvm install 7
|
||||||
- CHROMIUM_BUILD=466537
|
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O .chromium_dist
|
||||||
- mkdir -p $HOME/.chromium_dist/
|
- export DISPLAY=:99.0
|
||||||
- CHROMIUM_ZIP=$HOME/.chromium_dist/chromium-$CHROMIUM_BUILD.zip
|
- sudo dpkg -i google-chrome*.deb
|
||||||
- if [ ! -f $CHROMIUM_ZIP ]; then wget https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F$CHROMIUM_BUILD%2Fchrome-linux.zip?alt=media -O $CHROMIUM_ZIP; fi
|
- export CHROME_BIN=/usr/bin/google-chrome
|
||||||
- unzip -q $CHROMIUM_ZIP
|
- export DISPLAY=:99.0
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download\w+:)"`
|
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download\w+:)"`
|
||||||
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
|
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
|
||||||
- echo "Building version $NEW_VERSION"
|
- echo "Building version $NEW_VERSION"
|
||||||
|
@ -34,15 +35,15 @@ install:
|
||||||
- popd
|
- popd
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mvn -e test #-P \!htmlUnit
|
- mvn -e test -P \!htmlUnit
|
||||||
- BASE_PATH=`pwd`
|
- BASE_PATH=`pwd`
|
||||||
#- pushd tests/src/test/js
|
- pushd tests/src/test/js
|
||||||
#- $BASE_PATH/chrome-linux/chrome --headless --remote-debugging-port=9222 --disable-gpu about:blank &
|
- $CHROME_BIN --remote-debugging-port=9222 --disable-gpu about:blank &
|
||||||
#- CHROME_PID=$!
|
- CHROME_PID=$!
|
||||||
#- node start.js $BASE_PATH/tests/target/js-tests
|
- node start.js $BASE_PATH/tests/target/js-tests
|
||||||
#- node start.js $BASE_PATH/html4j/target/js-tests
|
- node start.js $BASE_PATH/html4j/target/js-tests
|
||||||
#- kill $CHROME_PID
|
- kill $CHROME_PID
|
||||||
#- popd
|
- popd
|
||||||
|
|
||||||
after_success: >
|
after_success: >
|
||||||
if [[ "${TRAVIS_PULL_REQUEST:-unknown}" == "false" && $TRAVIS_BRANCH == dev-* ]] ; then
|
if [[ "${TRAVIS_PULL_REQUEST:-unknown}" == "false" && $TRAVIS_BRANCH == dev-* ]] ; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user