.gitlab-ci.yml 617 Bytes
Newer Older
Athanasios's avatar
Athanasios committed
1
2
3
4
5
6
7
8
9
10
11
12
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
13
    - test -f  public/assets/css/mobile.css
Athanasios's avatar
Athanasios committed
14
    - test -f  public/assets/images/header.jpg
Athanasios's avatar
Athanasios committed
15
    - test -f  public/assets/images/hft_logo.svg
Athanasios's avatar
Athanasios committed
16
17
18
19
20
    - test -f  public/home/index.html
    - echo "Test finished, all ok"
  only:
    - master
  
21
pages:
Athanasios's avatar
Athanasios committed
22
23
  stage: deploy
  script:
24
    - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
Athanasios's avatar
Athanasios committed
25
26
  only: 
    - master