.gitlab-ci.yml 1.57 KB
Newer Older
TonyFord's avatar
TonyFord committed
1
2
stages:
  - build
TonyFord's avatar
TonyFord committed
3
  - init
TonyFord's avatar
TonyFord committed
4
  - start
TonyFord's avatar
TonyFord committed
5
  - status
TonyFord's avatar
TonyFord committed
6
7
8
9
10
11
12
  - stop
  - uninstall
  - remove

build-explorer:
  stage: build
  tags:
TonyFord's avatar
TonyFord committed
13
    - kaana.red
TonyFord's avatar
TonyFord committed
14
15
  only:
    refs:
TonyFord's avatar
TonyFord committed
16
      - master
TonyFord's avatar
TonyFord committed
17
    variables:
TonyFord's avatar
TonyFord committed
18
      - $CMD =~ /build|^install/
TonyFord's avatar
TonyFord committed
19
  before_script:
TonyFord's avatar
TonyFord committed
20
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
21
  script:
TonyFord's avatar
TonyFord committed
22
    - deploy/build
TonyFord's avatar
ts    
TonyFord committed
23

TonyFord's avatar
TonyFord committed
24
25
26
27
28
29
30
31
32
33
34
35
36
init-explorer:
  stage: init
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /init|^install/
  before_script:
    - chmod +x setenv && . setenv
  script:
    - deploy/init
TonyFord's avatar
TonyFord committed
37
  timeout: 10h
TonyFord's avatar
ts    
TonyFord committed
38

TonyFord's avatar
TonyFord committed
39
40
41
start-explorer:
  stage: start
  tags:
TonyFord's avatar
TonyFord committed
42
    - kaana.red
TonyFord's avatar
TonyFord committed
43
44
  only:
    refs:
TonyFord's avatar
TonyFord committed
45
      - master
TonyFord's avatar
TonyFord committed
46
    variables:
TonyFord's avatar
TonyFord committed
47
      - $CMD =~ /start|^install/
TonyFord's avatar
TonyFord committed
48
  before_script:
TonyFord's avatar
TonyFord committed
49
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
50
  script:
TonyFord's avatar
TonyFord committed
51
    - deploy/start
TonyFord's avatar
TonyFord committed
52
53
54
55

stop-explorer:
  stage: stop
  tags:
TonyFord's avatar
TonyFord committed
56
    - kaana.red
TonyFord's avatar
TonyFord committed
57
58
  only:
    refs:
TonyFord's avatar
TonyFord committed
59
      - master
TonyFord's avatar
TonyFord committed
60
61
    variables:
      - $CMD =~ /stop/
TonyFord's avatar
TonyFord committed
62
63
  before_script:
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
64
  script:
TonyFord's avatar
TonyFord committed
65
    - deploy/stop
TonyFord's avatar
TonyFord committed
66
67
68
69

uninstall-explorer:
  stage: uninstall
  tags:
TonyFord's avatar
TonyFord committed
70
    - kaana.red
TonyFord's avatar
TonyFord committed
71
72
  only:
    refs:
TonyFord's avatar
TonyFord committed
73
      - master
TonyFord's avatar
TonyFord committed
74
75
    variables:
      - $CMD =~ /uninstall/
TonyFord's avatar
TonyFord committed
76
77
78
79
80
81
  before_script:
    - chmod +x setenv && . setenv
  script:
    - deploy/uninstall

remove-explorer:
TonyFord's avatar
fix    
TonyFord committed
82
  stage: remove
TonyFord's avatar
TonyFord committed
83
84
85
86
87
88
89
90
91
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /remove/
  before_script:
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
92
  script:
TonyFord's avatar
TonyFord committed
93
    - deploy/remove
TonyFord's avatar
TonyFord committed
94
95
96
97
98
99
100
101
102
103
104
105

status-explorer:
  stage: status
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /status/
  before_script:
    - chmod +x ./setenv && . setenv
TonyFord's avatar
TonyFord committed
106
  script:
TonyFord's avatar
TonyFord committed
107
    - console/status