.gitlab-ci.yml 444 Bytes
Newer Older
Ben Dent's avatar
Ben Dent committed
1
image: gradle:latest
Ben Dent's avatar
Ben Dent committed
2 3 4 5

stages:
  - build
  - test
6
  - deploy
Ben Dent's avatar
Ben Dent committed
7 8 9

build_app:
  stage: build
10
  script: ssh root@nutrio.rafibaum.com "cd nutr.io-api/ && git checkout master && git pull origin master && ./gradlew build && exit"
Ben Dent's avatar
Ben Dent committed
11 12 13

test_app:
  stage: test
 Benjamin  Dent's avatar
Benjamin Dent committed
14
  script: ssh root@nutrio.rafibaum.com "cd nutr.io-api/ && ./gradlew test && exit"
Ben Dent's avatar
Ben Dent committed
15 16
  
deploy_app:
Ben Dent's avatar
Ben Dent committed
17
  stage: deploy
 Benjamin  Dent's avatar
Benjamin Dent committed
18
  script: ssh root@nutrio.rafibaum.com "cd nutr.io-api/ && systemctl restart nutrio"