-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
executable file
·55 lines (47 loc) · 1.34 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
#before_script:
# - "export ANDROID_HOME=\"/home/ravi/Android/Sdk\""
before_script:
- "export ANDROID_HOME=\"/android-sdk-linux\""
- "export BUILD_HOME=$PWD"
Lint:
script:
- cd MiniumApps
- chmod +x ./gradlew
- ./gradlew lint -p launcher3/
artifacts:
expire_in: "4 week"
name: "siempo_commit_${CI_BUILD_REF}"
paths:
- /home/gitlab-runner/builds/5a61db0a/0/siempo/siem-android-app/MiniumApps/launcher3/build/outputs/lint-results-debug.html
#- /home/gitlab-runner/builds/6ec47538/0/siempo/siem-android-app/MiniumApps/launcher3/build/outputs/lint-results-debug.html
Build:
script:
- sleep 120
- cd MiniumApps
- chmod +x ./gradlew
- ./gradlew assembleDebug
artifacts:
expire_in: "4 week"
name: "siempo_commit_${CI_BUILD_REF}"
paths:
- /home/gitlab-runner/builds/5a61db0a/0/siempo/siem-android-app/MiniumApps/launcher3/build/outputs/apk/alpha/debug/launcher3-alpha-debug.apk
#- /home/gitlab-runner/builds/6ec47538/0/siempo/siem-android-app/MiniumApps/launcher3/build/outputs/apk/launcher3-debug.apk
#stages:
# - build
# - test
# - lint
#build:
# stage: build
# script:
# - ./gradlew assembleDebug
# artifacts:
# paths:
# - app/build/outputs/
#unitTests:
# stage: test
# script:
# - ./gradlew test
#lintTests:
# stage: lint
# script:
# - ./gradlew lint