-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (52 loc) · 1.07 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
stages:
- test
- deploy
- androidbuild
- androidtest
test:
stage: test
tags:
- shell
script:
- cd BackEnd/ServerServices
- chmod 777 *
- ./mvnw test
deploy:
stage: deploy
tags:
- shell
only:
- master
script:
- cd BackEnd/ServerServices
- chmod 777 *
- ./mvnw package
- sudo rm -f /home/SS_5/database-access.jar
- sudo mv target/*SNAPSHOT.jar /home/SS_5/database-access.jar
- sudo systemctl stop ss-5
- sudo systemctl start ss-5
android-build:
image: javiersantos/android-ci:latest
stage: androidbuild
before_script:
- export GRADLE_USER_HOME='pwd'/.gradle
- chmod +x ./FrontEnd/gradlew
tags:
- android_tag1
script:
- cd FrontEnd
- ./gradlew assemble
artifacts:
paths:
- FrontEnd/app/build/outputs/
unitTests:
image: javiersantos/android-ci:latest
stage: androidtest
before_script:
- export GRADLE_USER_HOME='pwd'/.gradle
- chmod +x ./FrontEnd/gradlew
tags:
- android_tag1
script:
- cd FrontEnd
- ./gradlew test