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