Stop using pushd/popd in travis scripts

This commit is contained in:
Alexey Andreev 2018-01-11 00:29:06 +03:00
parent 4b1b702ce6
commit 71687e9591
2 changed files with 8 additions and 8 deletions

View File

@ -2,18 +2,18 @@
mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
pushd tools/eclipse
cd tools/eclipse
mvn tycho-versions:set-version -DnewVersion=$2
pushd core-plugin
cd core-plugin
sed -r -i -e "s/<version><!-- update -->(.+)<\/version>/<version><!-- update -->$1<\/version>/" dep-pom.xml
sed -r -i -e "s/(lib\/teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" build.properties
sed -r -i -e "s/(lib\/teavm(-[a-z]+)+)-.+\.jar/\1-$1.jar/" META-INF/MANIFEST.MF
popd
cd ..
pushd m2e-plugin
cd m2e-plugin
sed -r -i -e "s/<versionRange>.+<\/versionRange>/<versionRange>$1<\/versionRange>/" lifecycle-mapping-metadata.xml
popd
cd ..
popd
cd ../..

View File

@ -29,8 +29,8 @@ curl --ftp-create-dirs -T .idea-repository.xml \
#
# Upload Eclipse plugin
#
pushd tools/eclipse/updatesite/target/repository
cd tools/eclipse/updatesite/target/repository
find . -type f -exec curl \
--ftp-create-dirs \
-u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD -T {} ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev \;
popd
cd ../../../../..