.gitlab-ci.yml

 1---
 2
 3stages:
 4  - lint
 5  - test
 6
 7variables:
 8  FEATURES: ""
 9  RUST_BACKTRACE: "full"
10
11.show-version:
12  before_script:
13    - apt-get update; apt-get install -y --no-install-recommends pkg-config libssl-dev libicu-dev
14    - rustc --version
15    - cargo --version
16
17.stable:
18  image: rust:slim
19  extends:
20    - .show-version
21
22.nightly:
23  image: rustlang/rust:nightly-slim
24  # It's not often, but it happens nightly breaks, surprisingly.
25  allow_failure: true
26  extends:
27    - .show-version
28
29.test:
30  stage: test
31  script:
32    - cargo test --verbose --release -- --include-ignored
33    - cargo test --verbose --no-default-features
34
35rustfmt:
36  stage: lint
37  script:
38    - rustup component add rustfmt
39    - cargo fmt --check
40  extends:
41    - .stable
42
43stable-test:
44  extends:
45    - .test
46    - .stable
47
48nightly-test:
49  extends:
50    - .test
51    - .nightly