-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (57 loc) · 2.11 KB
/
.gitlab-ci.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
63
64
65
66
67
68
69
70
71
image: openjdk:8
stages:
- build
- pack
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:android:
image: xaethos/android-sdk-resource
stage: build
only:
- master
cache:
paths:
- android/build/outputs/apk
script:
- ./gradlew android:assembleDebug
build:desktop:
stage: build
only:
- master
cache:
paths:
- desktop/build/libs/*.jar
script:
- ./gradlew desktop:dist
pack:all:
stage: pack
dependencies:
- build:android
- build:desktop
only:
- master
artifacts:
paths:
- dist/
before_script:
- apt-get update && apt-get install zip
- wget -nv https://libgdx.badlogicgames.com/ci/packr/packr.jar
- wget -nv https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u80-unofficial-linux-i586-image.zip
- wget -nv https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u80-unofficial-linux-amd64-image.zip
- wget -nv https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u80-unofficial-windows-i586-image.zip
- wget -nv https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u80-unofficial-windows-amd64-image.zip
- mkdir dist
script:
- cp android/build/outputs/apk/app-debug.apk dist/dexter-android.apk
- java -jar packr.jar --platform=linux32 --jdk=openjdk-1.7.0-u80-unofficial-linux-i586-image.zip --output dexter-linux32 packr.json
- java -jar packr.jar --platform=linux64 --jdk=openjdk-1.7.0-u80-unofficial-linux-amd64-image.zip --output dexter-linux64 packr.json
- java -jar packr.jar --platform=windows32 --jdk=openjdk-1.7.0-u80-unofficial-windows-i586-image.zip --output dexter-win32 packr.json
- java -jar packr.jar --platform=windows64 --jdk=openjdk-1.7.0-u80-unofficial-windows-amd64-image.zip --output dexter-win64 packr.json
- zip -r dist/dexter-linux32.zip dexter-linux32
- zip -r dist/dexter-linux64.zip dexter-linux64
- zip -r dist/dexter-win32.zip dexter-win32
- zip -r dist/dexter-win64.zip dexter-win64