mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Pad build number with zeros. Log version number
This commit is contained in:
parent
5958a6d04c
commit
6817a7465d
|
@ -12,7 +12,8 @@ env:
|
||||||
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
- MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
|
||||||
before_install:
|
before_install:
|
||||||
- OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "^\["`
|
- 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-`printf %05d $TRAVIS_BUILD_NUMBER`
|
||||||
|
- echo "Building version $NEW_VERSION"
|
||||||
- mvn versions:set -DnewVersion=$NEW_VERSION
|
- mvn versions:set -DnewVersion=$NEW_VERSION
|
||||||
script: >
|
script: >
|
||||||
mvn -e test \
|
mvn -e test \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user