.gitlab-ci.yml 672 Bytes
Newer Older
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
Athanasios's avatar
Athanasios 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
23
    - test -f  public/home/index.html
    - echo "Test finished, all ok"
  only:
    - master
  

24
25
pages:
  stage: deploy
Athanasios's avatar
Athanasios committed
26
  script:
27
28
29
30
31
32
  - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
  artifacts:
    paths:
    - public
  only:
  - master