.gitlab-ci.yml 672 Bytes
Newer Older
1
image: alpine:latest
Athanasios's avatar
Athanasios committed
2
3
4
5

stages:
  - test
  - deploy
Athanasios's avatar
Athanasios committed
6

Athanasios's avatar
Athanasios committed
7
8
9
10
11
12
13
14
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
    - test -f  public/home/index.html
    - echo "Test finished, all ok"
  only:
    - master

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