-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (46 loc) · 1.06 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
image: openjdk:8u171-jdk-stretch
#services:
#- docker:dind
variables:
TERM: dumb
DOCKER_DRIVER: overlay2
cache:
key: ${CI_BUILD_REF_NAME}
untracked: true
paths:
- ${HOME}/.m2
- ${HOME}/.gradle
ci-job:
before_script:
- pwd
- whoami
- ls -lah .
- uname -a
- which bash
- which apt-get
- which apt || true
- apt-get update -y >/dev/null || true
- apt-get install -y --no-install-recommends curl jq bash sudo lsof >/dev/hull
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8080
script:
- echo "uncomment what's needed."
- #./gradlew -S >/dev/null
- #bash build/libs/*.jar &
- #wait_for 8080
- #curl -s 127.0.0.1:8080
- #curl -s 127.0.0.1:8080/api/ | jq .
- #stop_any 80 8080
#
- #./mvnw >/dev/hull
- #bash target/*.jar &
- #wait_for 8080
- #curl http://127.0.0.1:8080
- #curl -sH'content-type:application/json' http://127.0.0.1:8080/api/ | jq .
- #stop_any 80 8080
pages:
script:
- ./gradlew documentation >/dev/null
artifacts:
paths:
- public