forked from novasamatech/parity-signer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (53 loc) · 1.1 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
stages:
- test
- build
variables:
GIT_DEPTH: "3"
SIMPLECOV: "true"
RUST_BACKTRACE: "1"
RUSTFLAGS: ""
CARGOFLAGS: ""
cache:
untracked: true
#android-test:
# stage: test
# image: parity/parity-android
# only:
# - beta
# - tags
# - stable
# - triggers
# - master
# script:
# - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# - apt-get install -y nodejs
# - npm install -g yarn
# - npm install
# - npm run test
# tags:
# - rust
android-build:
stage: build
image: parity/android-sdk
only:
- beta
- tags
- stable
- triggers
- master
script:
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- apt-get install -y nodejs
- echo "ndk.dir=/usr/local/android-ndk-r16b" > android/local.properties
- echo "sdk.dir=/opt/android-sdk" >> android/local.properties
- npm install -g yarn
- bash ./setup_linux.sh
- bash ./gen_key.sh
- cd android && ./gradlew assembleRelease
- pwd
- ls
tags:
- rust
artifacts:
paths:
- ./android/app/build/outputs/apk/release/app-release.apk