.gitlab-ci.yml 587 Bytes
Newer Older
Alfakhori's avatar
Alfakhori committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
stages:
    - test
    - deploy
  
pages-test:
  stage: test
  script:
    - echo "Teste, ob Projektname gesetzt ist..."
    - (! grep 'projektname= ""' public/settings.js)
    - echo "Teste, ob Projektseitenlink gesetzt ist..."
    - (! grep 'projektseitenlink= ""' public/settings.js)
    - echo "Teste, ob Kontaktperson gesetzt ist..."
    - (! grep 'Max Mustermann' public/kontakt.html)
  only:
Alfakhori's avatar
Alfakhori committed
15
    - master
Alfakhori's avatar
Alfakhori committed
16
17
18
19
20
21
22
23
24
  
pages:
  stage: deploy
  script:
    - echo "deploy to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
  artifacts:
    paths:
      - vcm
  only: 
Alfakhori's avatar
Alfakhori committed
25
    - master