Unciv/.travis.yml

64 lines
2.8 KiB
YAML
Raw Normal View History

language: android
2019-07-27 20:21:40 +00:00
dist: trusty # For oracleJDK fail errors, as per advice from https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/6
2018-03-03 19:46:29 +00:00
jdk:
- oraclejdk8
android:
components:
- build-tools-29.0.2 # The BuildTools version used by the project
- android-29 # The SDK version used to compile the project
before_install:
2018-03-03 20:07:46 +00:00
- chmod +x gradlew
2018-03-03 19:46:29 +00:00
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
2018-03-03 19:46:29 +00:00
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
script:
- ./gradlew check
- ./gradlew tests:test
- if [ -n "$TRAVIS_TAG" ]; then
2020-05-17 19:13:25 +00:00
wget -O jdk-windows-64.zip https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.232-1.b09/java-1.8.0-openjdk-1.8.0.232-1.b09.ojdkbuild.windows.x86_64.zip;
2020-05-17 19:38:18 +00:00
wget -O jdk-windows-32.zip https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.252-2.b09-x86/java-1.8.0-openjdk-1.8.0.252-2.b09.ojdkbuild.windows.x86.zip;
2020-09-03 18:48:07 +00:00
wget -O butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default > /dev/null;
unzip butler.zip;
chmod +x butler;
2020-09-03 18:48:07 +00:00
./butler -V;
./gradlew desktop:packrWindows32;
2020-09-03 19:07:40 +00:00
./butler push deploy/Unciv-Windows32.zip yairm210/unciv:Windows32 --userversion $TRAVIS_TAG;
./gradlew desktop:packrWindows64;
2020-09-03 19:07:40 +00:00
./butler push deploy/Unciv-Windows64.zip yairm210/unciv:Windows64 --userversion $TRAVIS_TAG;
./gradlew desktop:packrLinux32;
2020-09-03 19:07:40 +00:00
./butler push deploy/Unciv-Linux32.zip yairm210/unciv:Linux32 --userversion $TRAVIS_TAG;
./gradlew desktop:packrLinux64;
2020-09-03 19:07:40 +00:00
./butler push deploy/Unciv-Linux64.zip yairm210/unciv:Linux64 --userversion $TRAVIS_TAG;
2019-11-27 19:03:14 +00:00
./gradlew desktop:zipLinuxFilesForJar;
fi
deploy:
provider: releases
skip_cleanup: true
draft: false
api_key:
secure: gx8AhuLqrQ8a5g/9/khHvWIoJ4yJ3zrVZ3G+QI2jQ7kAbRMCIGKNI4yFr/7f4pHc7SL9O5ihofcOBFO1/nLR9x1wyg7IHsXM6qTvajYqNzsQWSHX9TWvJsHOyL3bEPr/8Zy6BvX5AtIsDuF9vmKa8eLdITrHEx9MXn+MZnsHHc74EERkZjmmt1E06Lz0P4ykw8DWrMI5Gzq533LKXQa3p1XVLv68pImDBQtlgZBwZnyzIOYGEO4zqzTf5cWClrbTm/XNGioleoPGd+v3csy4DLQha+Bm7IyUcxiiMsRKXSUlR7oiz0P7yB+17jNpymnlOYjNEn8bgau4s67Kr/YjSwtPOnAInbY6T5h+TEeaZTSyg8um03YuXD3T2ZE7VNX/0yBVWf0ji2J2V0oHem24Inb5aqgIk6jNHSy4GSu0ify5Gkxa80JHHUF2411xohGPIt2saZTXx+QlSOOpIajG7lODAm0xdv1/PUMtKJRHX5VxlWXBwmIQNJ9IK4ZmON6uKYQzZeN30nal7NqGRZn/hpPbMshwBWPpBiK/kjuR5jkAu8lrWotzpc+j/WAob9afyfxADmtygGzSGXHoe0Ynw6kOmtS3bg5dj0e+dXZMc8EYfoPF7kPwGToE7jVinwLVcC6NNNUiYxCKehR2zs21B6WdIZvN4OJidL1WOkrYNDc=
2019-11-24 20:22:47 +00:00
file:
- desktop/build/libs/Unciv.jar
- deploy/Unciv-Linux32.zip
- deploy/Unciv-Linux64.zip
2020-05-17 19:38:18 +00:00
- deploy/Unciv-Windows32.zip
2019-11-24 20:22:47 +00:00
- deploy/Unciv-Windows64.zip
2019-11-27 19:03:14 +00:00
- deploy/linuxFilesForJar.zip
on:
2019-11-24 21:48:21 +00:00
repo: yairm210/Unciv
tags: true