.gitlab-ci.yml 456 Bytes
Newer Older
1 2
default:
  image: gitlab.doc.ic.ac.uk:4567/td1518/simplewebapp
expectocode's avatar
expectocode committed
3 4 5 6 7 8

variables:
  PORT: "5000"

build:
  stage: build
9
  script:
expectocode's avatar
expectocode committed
10 11 12 13
    - mvn compile

test:
  stage: test
14
  script:
expectocode's avatar
expectocode committed
15 16
    - mvn test

Viraj Shah's avatar
Viraj Shah committed
17 18 19 20
gitlab-deploy:
  stage: deploy
  script:
    - mvn package
 Viraj  Shah's avatar
Viraj Shah committed
21
    - sh target/bin/simplewebapp
expectocode's avatar
expectocode committed
22 23 24
  artifacts:
    paths:
    - target/
Viraj Shah's avatar
Viraj Shah committed
25 26

heroku-deploy:
expectocode's avatar
expectocode committed
27 28
  stage: deploy
  script:
 Viraj  Shah's avatar
Viraj Shah committed
29
    - dpl --provider=heroku --app=vs3318-simplewebapp --api-key=$API_TOKEN
expectocode's avatar
expectocode committed
30 31
  only:
    - master