forked from GaloisInc/swanky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (47 loc) · 1.32 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
image: "rust:latest"
variables:
GIT_STRATEGY: clone
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
before_script:
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential git
- rustup toolchain add $toolchain
- rustup default $toolchain
stages:
- checkfmt
- test
checkfmt:rustfmt:
stage: checkfmt
variables:
toolchain: nightly
script:
- rustup component add rustfmt --toolchain $toolchain
- cargo fmt --all -- --check
.test:
stage: test
script:
- rustc --version && cargo --version # Print version info for debugging
- etc/test_workspace.py "$features"
# Until the '-Z package-features' cargo argument is stabilized, there isn't an
# easy way to test every package with given features. As a result, we test
# on stable, without any features, but also on nightly without the nightly
# feature
test:stable:
stage: test
variables:
toolchain: stable
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo build --verbose --all --examples --tests --benches
- cargo test --all --verbose
test:without-stable-feature:
extends: .test
variables:
toolchain: nightly
features: curve25519-dalek serde
test:nightly:
extends: .test
variables:
toolchain: nightly
features: curve25519-dalek serde nightly