summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: d88d40d960dda1ef52085d7995a3981e04ef86bc (plain)
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
.cargo_test_template: &cargo_test
  stage: test
  script:
    - cargo test --verbose --jobs 1

stages:
  - test
  - deploy

stable:cargo:
  image: rustdocker/rust:stable
  <<: *cargo_test

stable:
  image: rustdocker/rust:stable
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

beta:
  image: rustdocker/rust:beta
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

nightly:
  image: rustdocker/rust:nightly
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

pages:
  image: rustdocker/rust:stable
  stage: deploy
  only:
    - master
  script:
    - cargo doc
    - rm -rf public
    - mkdir public
    - cp -R target/doc/* public
  artifacts:
    paths:
    - public