-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.gitlab-ci.yml
58 lines (53 loc) · 1.43 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
image: debian:stretch
stages:
- test
- deploy
variables:
ANDROID_HOME: /usr/lib/android-sdk
DEBIAN_FRONTEND: noninteractive
before_script:
- printf 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";\n'
> /etc/apt/apt.conf.d/99no-install-recommends
- printf 'APT::Acquire::Retries "20";\n'
> /etc/apt/apt.conf.d/99acquire-retries
- printf 'APT::Get::Assume-Yes "true";\n'
> /etc/apt/apt.conf.d/99assumeyes
- sed -i 's, main$, main contrib,' /etc/apt/sources.list
- apt-get update
- apt-get upgrade
- apt-get install git
- apt-get install --install-recommends
android-sdk
android-sdk-platform-23
file
libgradle-android-plugin-java
libarchive-zip-perl
strip-nondeterminism
build_on_debian:
stage: test
except:
- gh-pages
script:
- gradle jarRelease
- for f in build/libs/*.*; do strip-nondeterminism $f; done
- for f in build/libs/*.*; do sha256sum $f; done
artifacts:
name: "${CI_PROJECT_PATH}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}_${CI_JOB_NAME}"
paths:
- build/docs
- build/libs
expire_in: 1 week
when: on_success
after_script:
- echo "Download debug artifacts from https://gitlab.com/${CI_PROJECT_PATH}/-/jobs"
pages:
stage: deploy
only:
- master
artifacts:
paths:
- public
script:
- gradle javadoc
- test -d public || mkdir public
- cp -a build/docs/javadoc/* public/