forked from yairm210/Unciv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (54 loc) · 2.86 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: android
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
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:
- chmod +x gradlew
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
script:
- ./gradlew check
- ./gradlew tests:test
- if [ -n "$TRAVIS_TAG" ]; then
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 > /dev/null;
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 > /dev/null;
wget -O butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default > /dev/null;
unzip butler.zip;
chmod +x butler;
./butler -V;
./gradlew desktop:packrWindows32;
./butler push deploy/Unciv-Windows32.zip yairm210/unciv:Windows32 --userversion $TRAVIS_TAG;
./gradlew desktop:packrWindows64;
./butler push deploy/Unciv-Windows64.zip yairm210/unciv:Windows64 --userversion $TRAVIS_TAG;
./gradlew desktop:packrLinux32;
./butler push deploy/Unciv-Linux32.zip yairm210/unciv:Linux32 --userversion $TRAVIS_TAG;
./gradlew desktop:packrLinux64;
./butler push deploy/Unciv-Linux64.zip yairm210/unciv:Linux64 --userversion $TRAVIS_TAG;
./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=
file:
- desktop/build/libs/Unciv.jar
- deploy/Unciv-Linux32.zip
- deploy/Unciv-Linux64.zip
- deploy/Unciv-Windows32.zip
- deploy/Unciv-Windows64.zip
- deploy/linuxFilesForJar.zip
on:
repo: yairm210/Unciv
tags: true