mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-23 23:04:50 -08:00
Add travis configuration to upload CLI jar
This commit is contained in:
parent
422cb0462a
commit
ab1198a93a
|
@ -23,6 +23,7 @@ before_install:
|
||||||
- nvm install 7
|
- nvm install 7
|
||||||
- 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`
|
||||||
|
- export NEW_VERSION
|
||||||
- echo "Building version $NEW_VERSION"
|
- echo "Building version $NEW_VERSION"
|
||||||
- mvn versions:set -DnewVersion=$NEW_VERSION
|
- mvn versions:set -DnewVersion=$NEW_VERSION
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ after_success: >
|
||||||
export TEAVM_FTP_PASSWORD
|
export TEAVM_FTP_PASSWORD
|
||||||
mvn 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 && \
|
||||||
./update-idea-repository.sh
|
./update-idea-repository.sh
|
||||||
|
./update-cli.sh
|
||||||
fi
|
fi
|
||||||
after_script:
|
after_script:
|
||||||
- rm -rf $HOME/.m2/repository/org/teavm
|
- rm -rf $HOME/.m2/repository/org/teavm
|
5
update-cli.sh
Executable file
5
update-cli.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl --ftp-create-dirs -T tools/cli/target/teavm-cli-dev-$NEW_VERSION.jar \
|
||||||
|
-u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
|
||||||
|
ftp://$TEAVM_FTP_HOST/httpdocs/cli/dev/teavm-cli-dev-$NEW_VERSION.jar
|
|
@ -4,7 +4,7 @@ cat <<EOF >.idea-repository.xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
|
<plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
|
||||||
<idea-version since-build="163.12024.16" until-build="172.*" />
|
<idea-version since-build="163.12024.16" until-build="181.*" />
|
||||||
<description>TeaVM support</description>
|
<description>TeaVM support</description>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user