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
# Copyright © 2016–2019 University of Malta
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
stages:
- clibs
- test
before_script:
- getconf LONG_BIT
- apt-get update -qq && apt-get install -y -qq diffutils gcc make m4
- rustup --version
- if [ -n "$TOOLCHAIN" ]; then rustup install $TOOLCHAIN; fi
- if [[ "$TOOLCHAIN" == beta* ]]; then rustup component add --toolchain $TOOLCHAIN rustfmt clippy; fi
- if [ -d cargo/registry/cache ]; then rm -rf $CARGO_HOME/registry/cache && mkdir -p $CARGO_HOME/registry && cp -R cargo/registry/cache $CARGO_HOME/registry/ && echo Copied registry/cache; fi
- (if cd $CARGO_HOME/registry && [ -d cache ]; then find cache -name \*.crate; fi)
- export GMP_MPFR_SYS_CACHE=$CI_PROJECT_DIR/gmp-mpfr-sys-cache
after_script:
- (cd $CARGO_HOME/registry && find cache -name \*.crate)
- rm -rf cargo
- mkdir -p cargo/registry
- cp -R $CARGO_HOME/registry/cache cargo/registry/ && echo Updated registry/cache
clibs-x86_64-gnulinux:
image: amd64/rust:slim
stage: clibs
cache:
key: $CI_JOB_NAME
paths:
- cargo/
- gmp-mpfr-sys-cache/
script:
- cargo fetch
- cargo test --no-default-features --features "gmp-mpfr-sys/mpc gmp-mpfr-sys/ctest" -p gmp-mpfr-sys
artifacts:
paths:
- cargo/
- gmp-mpfr-sys-cache/
expire_in: 1 day
beta-x86_64-gnulinux:
image: amd64/rust:slim
stage: test
dependencies:
- clibs-x86_64-gnulinux
variables:
TOOLCHAIN: beta-x86_64
script:
- ./test-gitlab-ci.sh
stable-x86_64-gnulinux:
image: amd64/rust:slim
stage: test
dependencies:
- clibs-x86_64-gnulinux
variables:
TOOLCHAIN: stable-x86_64
script:
- ./test-gitlab-ci.sh
nightly-x86_64-gnulinux:
image: amd64/rust:slim
stage: test
dependencies:
- clibs-x86_64-gnulinux
variables:
TOOLCHAIN: nightly-x86_64
script:
- ./test-gitlab-ci.sh
1.31.1-x86_64-gnulinux:
image: amd64/rust:slim
stage: test
dependencies:
- clibs-x86_64-gnulinux
variables:
TOOLCHAIN: 1.31.1-x86_64
script:
- ./test-gitlab-ci.sh
clibs-i686-gnulinux:
image: i386/rust:slim
stage: clibs
cache:
key: $CI_JOB_NAME
paths:
- cargo/
- gmp-mpfr-sys-cache/
script:
- cargo fetch
- cargo test --no-default-features --features "gmp-mpfr-sys/mpc gmp-mpfr-sys/ctest" -p gmp-mpfr-sys
artifacts:
paths:
- cargo/
- gmp-mpfr-sys-cache/
expire_in: 1 day
beta-i686-gnulinux:
image: i386/rust:slim
stage: test
dependencies:
- clibs-i686-gnulinux
variables:
TOOLCHAIN: beta-i686
script:
- ./test-gitlab-ci.sh
stable-i686-gnulinux:
image: i386/rust:slim
stage: test
dependencies:
- clibs-i686-gnulinux
variables:
TOOLCHAIN: stable-i686
script:
- ./test-gitlab-ci.sh
nightly-i686-gnulinux:
image: i386/rust:slim
stage: test
dependencies:
- clibs-i686-gnulinux
variables:
TOOLCHAIN: nightly-i686
script:
- ./test-gitlab-ci.sh
1.31.1-i686-gnulinux:
image: i386/rust:slim
stage: test
dependencies:
- clibs-i686-gnulinux
variables:
TOOLCHAIN: 1.31.1-i686
script:
- ./test-gitlab-ci.sh