-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.gitlab-ci.yml
141 lines (126 loc) · 2.86 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Configuration for GitLab CI/CD
# https://gitlab.com/sigscale/radierl
stages:
- build
- test
- deploy
.build:otp: &build_otp
stage: build
image: erlang
script:
- export ERL_LIBS="${CI_PROJECT_DIR}/.build/otp-${OTP_VERSION}/lib"
- export ERLANG_INSTALL_LIB_DIR=${ERL_LIBS}
- aclocal
- autoheader
- autoconf
- automake --add-missing
- mkdir -p .build/otp-${OTP_VERSION}/radius
- cd .build/otp-${OTP_VERSION}/radius
- ../../../configure
- make
- mkdir ../lib
- make install
- cd ../../../examples
- aclocal
- autoheader
- autoconf
- automake --add-missing
- mkdir -p ../.build/otp-${OTP_VERSION}/examples
- cd ../.build/otp-${OTP_VERSION}/examples
- ../../../examples/configure
- make
- make install
artifacts:
untracked: true
paths:
- .build/
build:otp-21:
<<: *build_otp
image: erlang:21
build:otp-20:
<<: *build_otp
image: erlang:20
build:otp-19:
<<: *build_otp
image: erlang:19
build:otp-18:
<<: *build_otp
image: erlang:18
.check:otp: &check_otp
stage: test
image: erlang
when: always
script:
- export ERL_LIBS="${CI_PROJECT_DIR}/.build/otp-${OTP_VERSION}/lib"
- export DIALYZER_PLT="${CI_PROJECT_DIR}/.build/otp-${OTP_VERSION}/.dialyzer_plt"
- if ! dialyzer --plt_info; then dialyzer --build_plt --apps erts kernel stdlib crypto compiler; fi
- cd .build/otp-${OTP_VERSION}/radius
- make check
- cd ../examples
- dialyzer --add_to_plt --apps radius
- make check
check:otp-21:
<<: *check_otp
image: erlang:21
dependencies:
- build:otp-21
check:otp-20:
<<: *check_otp
image: erlang:20
dependencies:
- build:otp-20
check:otp-19:
<<: *check_otp
image: erlang:19
dependencies:
- build:otp-19
check:otp-18:
<<: *check_otp
image: erlang:18
dependencies:
- build:otp-18
pages:otp-18:
stage: deploy
script:
- mkdir -p .public/doc .public/tests
- cp -r .build/otp-18.*/radierl/test/log/* .public/tests
- cp -r .build/otp-18.*/radierl/doc/* .public/doc
- mv .public public
artifacts:
when: always
paths:
- public
dependencies:
- check:otp-18
# Temporary option
when: always
pages:otp-19:
stage: deploy
script:
- mkdir -p .public/doc .public/tests
- cp -r .build/otp-19.*/radierl/test/log/* .public/tests
- cp -r .build/otp-19.*/radierl/doc/* .public/doc
- mv .public public
artifacts:
when: always
paths:
- public
dependencies:
- check:otp-19
# Temporary option
when: always
pages:otp-20:
stage: deploy
script:
- mkdir -p .public/doc .public/tests
- cp -r .build/otp-20.*/radierl/test/log/* .public/tests
- cp -r .build/otp-20.*/radierl/doc/* .public/doc
- mv .public public
artifacts:
when: always
paths:
- public
dependencies:
- check:otp-20
# Temporary option
when: always