.gitlab-ci.yml 319 Bytes
Newer Older
expectocode's avatar
expectocode committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
image: maven:latest

variables:
  PORT: "5000"

build:
  stage: build
  script:
    - mvn compile

test:
  stage: test
  script:
    - mvn test

deploy:
  stage: deploy
  script:
19
    - systemctl --user stop simple-webapp.service
expectocode's avatar
expectocode committed
20
    - mvn package
21
    - systemctl --user start simple-webapp.service
expectocode's avatar
expectocode committed
22 23
  only:
    - master