From ab1198a93a898306d4ce67ec2a4f79831a1bb221 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 1 Jan 2018 15:05:30 +0300 Subject: [PATCH] Add travis configuration to upload CLI jar --- .travis.yml | 2 ++ update-cli.sh | 5 +++++ update-idea-repository.sh | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 update-cli.sh diff --git a/.travis.yml b/.travis.yml index 38b6e7def..f50f9ac55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/update-cli.sh b/update-cli.sh new file mode 100755 index 000000000..5e8e869b5 --- /dev/null +++ b/update-cli.sh @@ -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 diff --git a/update-idea-repository.sh b/update-idea-repository.sh index adb5f7255..248eef657 100755 --- a/update-idea-repository.sh +++ b/update-idea-repository.sh @@ -4,7 +4,7 @@ cat <.idea-repository.xml - + TeaVM support