.gitlab-ci.yml 608 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
9
stages:
    - test
    - 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
17
  only:
    - master
18
  
Wolfgang Knopki's avatar
Wolfgang Knopki committed
19
pages:
GitLab's avatar
GitLab committed
20
21
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
22
23
24
25
26
27
  - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
  artifacts:
    paths:
    - public
  only:
  - master