-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy path.gitlab-ci.yml
107 lines (99 loc) · 2.24 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
image: "redoxos/redoxer"
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
- apt-get update -qq
- apt-get install -qq build-essential curl git
format:
image: 'rustlang/rust:nightly'
cache:
key: format
paths:
- cargo/
- target/
script:
- rustup default nightly
- rustup component add rustfmt
- cargo +nightly fmt --all -- --check
linux:
image: 'rust:1.65.0'
cache:
key: linux
paths:
- cargo/
- target/
script:
- cargo check --features=piston
- FULL=1 make tests
# Deactiavted: job linux:stable does always fail right now
# For details see issue: https://gitlab.redox-os.org/redox-os/ion/-/issues/1027
# linux:stable:
# cache:
# key: linuxstable
# paths:
# - cargo/
# - target/
# script:
# - cargo check --features=piston
# - TOOLCHAIN= make tests
redox:
cache:
key: redox
paths:
- cargo/
- target/
before_script:
- apt-get update -qq
- apt-get install -qq build-essential curl git
script:
- redoxer build # TODO: do test when it does not hang
# Disabled until issues can be fixed
# link-check:
# image: hrektts/mdbook
# cache:
# key: linkcheck
# paths:
# - cargo/
# - cargo/bin
# before_script:
# - apt-get update -qq
# - apt-get install -qq libssl-dev pkg-config build-essential curl git
# - test -x $CARGO_HOME/bin/mdbook-linkcheck || cargo install mdbook-linkcheck
# script:
# - PATH=$PATH:$CARGO_HOME/bin
# - make manual
# - mdbook build manual
pages:
image: hrektts/mdbook
stage: deploy
cache:
key: book
paths:
- cargo/
- cargo/bin
before_script:
- apt-get update -qq
- apt-get install -qq libssl-dev pkg-config build-essential curl git
script:
- PATH=$PATH:$CARGO_HOME/bin
- make manual
- mdbook build manual
- mv manual/book/html public
artifacts:
paths:
- public
only:
- master
compare-benchmarks:
image: rustlang/rust:nightly
stage: test
when: manual
allow_failure: true
except: [master]
script:
- apt-get update && apt-get install -y build-essential libboost-dev jq bc
- sh ./ci/run_benchmark.sh
artifacts:
reports:
junit: target/report.xml
paths: [target/criterion]