mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Travis: fix configuration
This commit is contained in:
parent
4b13463e9f
commit
78be2d25a6
10
.travis.yml
10
.travis.yml
|
@ -19,9 +19,9 @@ branches:
|
||||||
- /^dev-.+/
|
- /^dev-.+/
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- MVN_CMD='mvn -Dmaven.repo.local=$HOME/mvn_repo'
|
- alias mvn='mvn -Dmaven.repo.local=$HOME/mvn_repo'
|
||||||
- nvm install 7
|
- nvm install 7
|
||||||
- OLD_VERSION=`$MVN_CMD help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download)"`
|
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download)"`
|
||||||
- BASE_VERSION=${OLD_VERSION%-SNAPSHOT}
|
- BASE_VERSION=${OLD_VERSION%-SNAPSHOT}
|
||||||
- NEW_VERSION=${BASE_VERSION}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
|
- NEW_VERSION=${BASE_VERSION}-dev-`printf %d $TRAVIS_BUILD_NUMBER`
|
||||||
- ECLIPSE_VERSION=${BASE_VERSION}.dev_`printf %d $TRAVIS_BUILD_NUMBER`
|
- ECLIPSE_VERSION=${BASE_VERSION}.dev_`printf %d $TRAVIS_BUILD_NUMBER`
|
||||||
|
@ -35,7 +35,7 @@ before_install:
|
||||||
- rm -rf $HOME/.m2
|
- rm -rf $HOME/.m2
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- $MVN_CMD install -Dteavm.build.all=false -P with-idea -P with-eclipse -P with-cli -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
- mvn install -Dteavm.build.all=false -P with-idea -P with-eclipse -P with-cli -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
- pushd tests/src/test/js
|
- pushd tests/src/test/js
|
||||||
- npm config set prefix=$HOME/.node_modules
|
- npm config set prefix=$HOME/.node_modules
|
||||||
- npm install
|
- npm install
|
||||||
|
@ -45,7 +45,7 @@ install:
|
||||||
- rm -rf $HOME/mvn_repo/org/teavm/idea
|
- rm -rf $HOME/mvn_repo/org/teavm/idea
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- $MVN_CMD -e test -Dteavm.junit.optimized=false -Dteavm.junit.js.runner=none
|
- mvn -e test -Dteavm.junit.optimized=false -Dteavm.junit.js.runner=none
|
||||||
- BASE_PATH=`pwd`
|
- BASE_PATH=`pwd`
|
||||||
- pushd tests/src/test/js
|
- pushd tests/src/test/js
|
||||||
- "export DISPLAY=:99.0"
|
- "export DISPLAY=:99.0"
|
||||||
|
@ -69,7 +69,7 @@ after_success: >
|
||||||
export TEAVM_FTP_HOST
|
export TEAVM_FTP_HOST
|
||||||
export TEAVM_FTP_LOGIN
|
export TEAVM_FTP_LOGIN
|
||||||
export TEAVM_FTP_PASSWORD
|
export TEAVM_FTP_PASSWORD
|
||||||
$MVN_CMD deploy -Dteavm.build.all=false -DskipTests --settings travis-settings.xml -P deploy-to-bintray -P with-idea && \
|
mvn deploy -Dteavm.build.all=false -DskipTests --settings travis-settings.xml -P deploy-to-bintray -P with-idea && \
|
||||||
./upload-files.sh
|
./upload-files.sh
|
||||||
fi
|
fi
|
||||||
after_script:
|
after_script:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user