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

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