Update .travis.yml and deploy_master.sh

This commit is contained in:
Andrea Cavalli 2020-08-18 19:17:00 +02:00
parent 0000d27d1d
commit 1f9593993d
2 changed files with 4 additions and 3 deletions

View File

@ -50,10 +50,11 @@ before_install:
script: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
bash -e travis/linux.sh;
bash -e travis/deploy_master.sh
fi
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
bash -e travis/win.sh;
bash travis/win.sh;
bash travis/deploy_master.sh
fi
bash travis/deploy_master.sh

View File

@ -32,7 +32,7 @@ git clone "git@ssh.git.ignuranza.net:tdlight-team/tdlight-java-natives-$TRAVIS_O
cd "tdlight-java-natives-$TRAVIS_OS_NAME_STANDARD-$TRAVIS_CPU_ARCH_STANDARD"
if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then
mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD"
mv "$TRAVIS_BUILD_DIR/out/libtdjni.so" "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll"
mv "$TRAVIS_BUILD_DIR/out/libtdjni.dll" "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll"
git add "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD/tdjni.dll"
else
mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_STANDARD/$TRAVIS_CPU_ARCH_STANDARD"