mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 08:24:10 -08:00
Fix getting current version in travis build
This commit is contained in:
parent
55453c9311
commit
5958a6d04c
|
@ -11,7 +11,7 @@ branches:
|
||||||
env:
|
env:
|
||||||
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
||||||
before_install:
|
before_install:
|
||||||
- OLD_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version`
|
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "^\["`
|
||||||
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-build-$TRAVIS_BUILD_NUMBER
|
- NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-build-$TRAVIS_BUILD_NUMBER
|
||||||
- mvn versions:set -DnewVersion=$NEW_VERSION
|
- mvn versions:set -DnewVersion=$NEW_VERSION
|
||||||
script: >
|
script: >
|
||||||
|
|
Loading…
Reference in New Issue
Block a user