forked from nblockchain/geewallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
115 lines (100 loc) · 2.48 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
stages:
- buildenv
- build
- unit_tests
- integration_tests
- package
stockmono_buildenv:
image: docker:19.03.12
stage: buildenv
services:
- docker:19.03.12-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/stock_env:$CI_COMMIT_SHA -f scripts/stockmono.docker .
- docker push $CI_REGISTRY_IMAGE/stock_env:$CI_COMMIT_SHA
stockmono_build:
image: $CI_REGISTRY_IMAGE/stock_env:$CI_COMMIT_SHA
stage: build
script:
- mono --version
- ./configure.sh
- make strict
- make
- make sanitycheck
- make install
stockmono_test_unit:
image: $CI_REGISTRY_IMAGE/stock_env:$CI_COMMIT_SHA
stage: unit_tests
script:
- mono --version
- ./configure.sh
- make
- make check
stockmono_test_integration:
image: $CI_REGISTRY_IMAGE/stock_env:$CI_COMMIT_SHA
stage: integration_tests
script:
- mono --version
- ./configure.sh
- make
- make update-servers
newmono_buildenv:
image: docker:19.03.12
stage: buildenv
services:
- docker:19.03.12-dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/new_env:$CI_COMMIT_SHA -f scripts/newmono.docker .
- docker push $CI_REGISTRY_IMAGE/new_env:$CI_COMMIT_SHA
newmono_build:
image: $CI_REGISTRY_IMAGE/new_env:$CI_COMMIT_SHA
stage: build
artifacts:
paths:
- bin/*.zip
expire_in: 50days
script:
- ./configure.sh
- make strict
- make
- make sanitycheck
- make install
# so that we log the version of nuget for when it works
- make nuget
- make zip
newmono_test_unit:
image: $CI_REGISTRY_IMAGE/new_env:$CI_COMMIT_SHA
stage: unit_tests
script:
- time (./configure.sh && make && make check)
newmono_test_integration:
image: $CI_REGISTRY_IMAGE/new_env:$CI_COMMIT_SHA
stage: integration_tests
script:
- ./configure.sh &&
make &&
make update-servers
#
# Disabled snap generation because of https://bugs.launchpad.net/snappy/+bug/1660957/comments/2
#
#stockmono_snap:
# image: ubuntu:20.04
# stage: package
#
# variables:
# # Fixes:
# # "Cannot connect to the Docker daemon. Is the docker daemon running on this host?"
# DOCKER_HOST: tcp://docker:2375
# services:
# # To support docker-in-docker
# - docker:dind
#
# script:
# - ./scripts/snap_build_and_upload_as_docker.sh
#
# artifacts:
# paths:
# - "*.snap"
# expire_in: 50days