.gitlab-ci.yml 570 Bytes
Newer Older
1
# Continuous integration configuration for Gitlab
2

3 4 5
stages:
  - build

Chuck LeDuc Díaz's avatar
Chuck LeDuc Díaz committed
6
.prepare: &prepare
7 8
  - rustc --version && cargo --version
  - rustup component add rustfmt
Chuck LeDuc Díaz's avatar
Chuck LeDuc Díaz committed
9 10

.verify: &verify
11
  - cargo fmt -- --check
12 13
  - cargo build --verbose
  - cargo test --verbose
14

15 16
# build target: rust latest version
test:latest:
17
  stage: build
18
  image: rust:latest
19
  script:
Chuck LeDuc Díaz's avatar
Chuck LeDuc Díaz committed
20 21 22 23
    - *prepare
    - rustup component add clippy
    - cargo clippy
    - *verify
24

25
# build target: rust nightly version
26
test:nightly:
27
  stage: build
28
  image: rustlang/rust:nightly
29
  script:
Chuck LeDuc Díaz's avatar
Chuck LeDuc Díaz committed
30 31
    - *prepare
    - *verify