Skip to content

Commit ce34a51

Browse files
authored
Create script1.yml
1 parent 65f6cbb commit ce34a51

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

dockerScripts/script1.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
image: commit451/android-sdk-installer:latest
2+
3+
before_script:
4+
- android-sdk-installer
5+
6+
stages:
7+
- build
8+
- test
9+
- deploy
10+
11+
build:
12+
stage: build
13+
script:
14+
- ./gradlew assembleFdroidDebug
15+
16+
test:
17+
stage: test
18+
script:
19+
- ./gradlew testFdroidDebug
20+
artifacts:
21+
when: always
22+
paths:
23+
- app/build/reports/tests/testFdroidDebugUnitTest
24+
expire_in: 15 days
25+
26+
pages:
27+
stage: deploy
28+
dependencies:
29+
- test
30+
allow_failure: true
31+
before_script:
32+
- echo "Overide global before_script and don't do anything."
33+
script:
34+
- mkdir -p public/tests
35+
- cp -r app/build/reports/tests/testFdroidDebugUnitTest/ public/tests
36+
artifacts:
37+
paths:
38+
- public
39+
when: always
40+
only:
41+
- develop

0 commit comments

Comments
 (0)