.gitlab-ci.yml 326 Bytes
Newer Older
root's avatar
root committed
1
2
3
4
5
stages:
  - build
  - test
  - deploy

6
7
8
build-job:
  stage: build
  script:
root's avatar
root committed
9
10
    - echo "Starting build.\n"
    - fuser -k 5000/tcp
11
    - mvn compile
12
13
14
15

test-job:
  stage: test
  script:
16
    - mvn test
17
18
19
20

deploy-prod:
  stage: deploy
  script:
21
    - mvn package
22
    - export PORT=5000
23
    - screen -m -d sh target/bin/simplewebapp
24