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

build-explorer:
  stage: build
  tags:
    - FairCoin.Co
  only:
    refs:
TonyFord's avatar
TonyFord committed
14
      - master
TonyFord's avatar
TonyFord committed
15
16
17
    variables:
      - $CMD =~ /build/
  before_script:
TonyFord's avatar
TonyFord committed
18
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
19
  script:
TonyFord's avatar
TonyFord committed
20
    - deploy/build
TonyFord's avatar
ts    
TonyFord committed
21
22
  timeout: 6h

TonyFord's avatar
TonyFord committed
23
24
25
26
27
28
start-explorer:
  stage: start
  tags:
    - FairCoin.Co
  only:
    refs:
TonyFord's avatar
TonyFord committed
29
      - master
TonyFord's avatar
TonyFord committed
30
31
32
    variables:
      - $CMD =~ /build|start/
  before_script:
TonyFord's avatar
TonyFord committed
33
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
34
  script:
TonyFord's avatar
TonyFord committed
35
    - deploy/start
TonyFord's avatar
TonyFord committed
36
37
38
39
40
41
42

stop-explorer:
  stage: stop
  tags:
    - FairCoin.Co
  only:
    refs:
TonyFord's avatar
TonyFord committed
43
      - master
TonyFord's avatar
TonyFord committed
44
45
    variables:
      - $CMD =~ /stop/
TonyFord's avatar
TonyFord committed
46
47
  before_script:
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
48
  script:
TonyFord's avatar
TonyFord committed
49
    - deploy/stop
TonyFord's avatar
TonyFord committed
50
51
52
53
54
55
56

uninstall-explorer:
  stage: uninstall
  tags:
    - FairCoin.Co
  only:
    refs:
TonyFord's avatar
TonyFord committed
57
      - master
TonyFord's avatar
TonyFord committed
58
59
    variables:
      - $CMD =~ /uninstall/
TonyFord's avatar
TonyFord committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  before_script:
    - chmod +x setenv && . setenv
  script:
    - deploy/uninstall

remove-explorer:
  stage: uninstall
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /remove/
  before_script:
    - chmod +x setenv && . setenv
TonyFord's avatar
TonyFord committed
76
  script:
TonyFord's avatar
TonyFord committed
77
    - deploy/remove
TonyFord's avatar
TonyFord committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91

status-explorer:
  stage: status
  tags:
    - FairCoin.Co
  only:
    refs:
      - master
    variables:
      - $CMD =~ /status/
  before_script:
    - chmod +x ./setenv && . setenv
  script:
    - console/status