-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
61 lines (54 loc) · 1.55 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
image: registry.coinninja.net/engineering/android-ndk:tooling-update
stages:
- build
- test
- deploy
before_script:
- export ANDROID_HOME=/sdk-tools
- export ANDROID_NDK_HOME=/opt/android-ndk/android-ndk-r20
- export PATH=$PATH:/sdk-tools/platform-tools/
- export PATH=$PATH:$ANDROID_NDK_HOME
#cache:
# key: ${CI_PROJECT_ID}
# paths:
# - .gradle/
# - ./cnlibbitcoin/build
# - ./cnlibbitcoin/externaldeps/make/deps/build
# - ./cnlibbitcoin/externaldeps/make/deps/download
# - ./cnlibbitcoin/ndkBuild
# - ./cnlibbitcoin/.externalNativeBuild
build:
stage: build
except:
- /^[\d\.]+RC$/@cn/android_cn_libbitcoin
script:
- apt-get -y update
- apt-get -y install autoconf automake cmake git libtool pkg-config protobuf-compiler clang astyle
- apt-get -y install patch
- apt-get -y install build-essential
- ./gradlew importCache assembleAll assemble createCache --stacktrace
artifacts:
name: "cnlibbitcoin.aar"
when: on_success
paths:
- ./cnlibbitcoin/build/outputs/aar/cnlibbitcoin-release.aar
instrumentedTest:
stage: test
tags:
- android
except:
- branches
script:
- ./gradlew assembleAll assemble connectedAndroidTest
build_and_deploy:
stage: deploy
tags:
- android
only:
- /^[\d\.]+RC$/@cn/android_cn_libbitcoin
script:
- apt-get -y update
- apt-get -y install autoconf automake cmake git libtool pkg-config protobuf-compiler clang astyle
- apt-get -y install patch
- patch --version
- ./gradlew assembleAll assemble uploadArchives --stacktrace