-
Notifications
You must be signed in to change notification settings - Fork 21
/
.gitlab-ci.yml
58 lines (53 loc) · 2.24 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
include:
- project: 'tools/gitlab_ci'
ref: master
file: 'android-sdk/android-sdk-template.gitlab-ci.yml'
stages:
- test
- build auto
- build manual
- release
build_demo_app:
extends: .build_auto
stage: build auto
script:
- ./base64-decode-files.sh
- ChoiceSDK/gradlew :choicesdk-app:assembleRelease -b ChoiceSDK/build.gradle
build_sdks:
extends: .build_manual
stage: build manual
script:
- ./base64-decode-files.sh
- ChoiceSDK/gradlew :choicesdk-core:assembleRelease -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-analytics:assembleRelease -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-location:assembleRelease -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-maps:assembleRelease -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-messaging:assembleRelease -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-signin:assembleRelease -b ChoiceSDK/build.gradle
release_sdks:
extends: .release
script:
- ./base64-decode-files.sh
- ChoiceSDK/gradlew :choicesdk-core:assembleRelease :choicesdk-core:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-analytics:assembleRelease :choicesdk-analytics:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-location:assembleRelease :choicesdk-location:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-maps:assembleRelease :choicesdk-maps:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-messaging:assembleRelease :choicesdk-messaging:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
- ChoiceSDK/gradlew :choicesdk-signin:assembleRelease :choicesdk-signin:publish closeAndReleaseStagingRepository -b ChoiceSDK/build.gradle
when: manual
pages:
stage: release
when: manual
needs: []
tags:
- android
image: gitlab.bluesource.at:5050/tools/docker_images/android_docker_image:api-30-ndk
script:
- ./base64-decode-files.sh
- mkdir public
- cd ChoiceSDK
- ./gradlew dokkaHtmlCollector
- cp -r ./build/dokka/htmlCollector/* ../public
artifacts:
paths:
- public