-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
115 lines (101 loc) · 2.57 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
115
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 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 sanitycheck
- make strict
- make
- 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 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 sanitycheck
- make strict
- make
- 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
# snap package generation is not working with GitLabCI; TODO: report bug
#stockoldmono_package:
# image: ubuntu:18.04
# stage: package
# script:
# - ./scripts/install_mono_from_microsoft_deb_packages.sh
#
# - apt install -y sudo
# - ./scripts/install_snapcraft_dockerless.sh
# # finish installation of snapcraft
# - export SNAP=/snap/snapcraft/current
# - export SNAP_NAME=snapcraft
# - export SNAP_ARCH=amd64
# - export PATH="/snap/bin:$PATH"
#
# - /snap/bin/snapcraft --version
#
# - ./scripts/snap_build.sh
#
# artifacts:
# paths:
# - gwallet*.snap
# expire_in: 50days