.gitlab-ci.yml 1.09 KB
Newer Older
1 2 3 4 5 6
stages:
  - build
  - test
  - deploy

build metager1:
Dominik Hebeler's avatar
Dominik Hebeler committed
7 8 9
  tags:
  - 144.76.113.134
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
10
    - master@open-source/MetaGer
Dominik Hebeler's avatar
Dominik Hebeler committed
11 12 13 14
  before_script:
    # Abhängigkeiten überprüfen
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
15
    - which php
Dominik Hebeler's avatar
Dominik Hebeler committed
16
    - which sqlite3
Dominik Hebeler's avatar
Dominik Hebeler committed
17
  script:
18
    - sh build.sh
Dominik Hebeler's avatar
Dominik Hebeler committed
19
   
20
build metager2:
Dominik Hebeler's avatar
Dominik Hebeler committed
21 22 23
  tags:
  - metager2
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
24
    - master@open-source/MetaGer
Dominik Hebeler's avatar
Dominik Hebeler committed
25 26 27 28
  before_script:
    # Abhängigkeiten überprüfen
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
29
    - which php
Dominik Hebeler's avatar
Dominik Hebeler committed
30 31
    - which sqlite3
  script:
32
    - sh build.sh
Dominik Hebeler's avatar
Dominik Hebeler committed
33
    
34 35
build metager3:
  stage: build
Dominik Hebeler's avatar
Dominik Hebeler committed
36 37
  tags:
  - metager3
Dominik Hebeler's avatar
Dominik Hebeler committed
38
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
39
    - development@open-source/MetaGer
40
  before_script:
41
    # Abhängigkeiten überprüfen
42 43
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
44
    - which php
Dominik Hebeler's avatar
Dominik Hebeler committed
45
    - which sqlite3
Dominik Hebeler's avatar
Dominik Hebeler committed
46
  script:
47 48 49 50 51 52 53
    - sh build.sh

test metager3:
  stage: test
  tags:
    - metager3
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
54
    - development@open-source/MetaGer
55 56 57
  script:
    - cd ~/MetaGer_neu 
    - sh test.sh
Dominik Hebeler's avatar
Dominik Hebeler committed
58 59
    - kill $browserstackPid
    - kill $servePid
60 61 62 63 64 65 66 67 68

deploy metager3:
  stage: deploy
  tags:
    - metager3
  only:
    - development@open-source/MetaGer
  script:
    - cd ~/MetaGer_neu 
Dominik Hebeler's avatar
Dominik Hebeler committed
69
    - sh deploy.sh