Add travis configuration to upload CLI jar

This commit is contained in:
Alexey Andreev 2018-01-01 15:05:30 +03:00
parent 422cb0462a
commit ab1198a93a
3 changed files with 8 additions and 1 deletions

View File

@ -23,6 +23,7 @@ before_install:
- nvm install 7
- 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`
- export NEW_VERSION
- echo "Building version $NEW_VERSION"
- mvn versions:set -DnewVersion=$NEW_VERSION
@ -56,6 +57,7 @@ after_success: >
export TEAVM_FTP_PASSWORD
mvn deploy -Dteavm.build.all=false -DskipTests --settings travis-settings.xml -P deploy-to-bintray -P with-idea && \
./update-idea-repository.sh
./update-cli.sh
fi
after_script:
- rm -rf $HOME/.m2/repository/org/teavm

5
update-cli.sh Executable file
View 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

View File

@ -4,7 +4,7 @@ cat <<EOF >.idea-repository.xml
<?xml version="1.0" encoding="UTF-8"?>
<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">
<idea-version since-build="163.12024.16" until-build="172.*" />
<idea-version since-build="163.12024.16" until-build="181.*" />
<description>TeaVM support</description>
</plugin>
</plugins>