.gitlab-ci.yml 671 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
image: alpine:latest
Athanasios's avatar
Athanasios committed
2
3
4
5
6
7
8
9
10
11
12
13
14

stages:
  - test
  - deploy
  
test-job:
  stage: test
  script:
    - echo "Testing files exist..."
    - test -f  public/index.html
    - test -f  public/main.js
    - test -f  public/settings.js
    - test -f  public/assets/css/style.css
Athanasios's avatar
Athanasios committed
15
    - test -f  public/assets/css/mobile.css
Koukofikis's avatar
Koukofikis committed
16
    - test -f  public/assets/images/header.jpg
Athanasios's avatar
Athanasios committed
17
    - test -f  public/assets/images/hft_logo.svg
Athanasios's avatar
Athanasios committed
18
19
20
21
22
    - test -f  public/home/index.html
    - echo "Test finished, all ok"
  only:
    - master
  
Wolfgang Knopki's avatar
Wolfgang Knopki committed
23
pages:
Athanasios's avatar
Athanasios committed
24
25
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
26
27
28
29
30
31
  - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
  artifacts:
    paths:
    - public
  only:
  - master