.gitlab-ci.yml 606 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
image: alpine:latest
GitLab's avatar
GitLab committed
2

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