summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 6efb8da0bf178ae2f09dd79d76e971df7f1e9b43 (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
image: ubuntu:xenial

before_script:
  - apt-get update
  - apt-get -y install sudo curl git file g++ cmake
  - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $CI_BUILD_NAME
  - . ~/.cargo/env && rustc -V && cargo -V

stages:
  - test
  - deploy

stable:
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

beta:
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

nightly:
  stage: test
  script:
    - cargo test --verbose --jobs 1 --release

pages:
  before_script:
    - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
  stage: deploy
  only:
    - master
  script:
    - cargo doc
    - rm -rf public
    - mkdir public
    - cp -R target/doc/* public
  artifacts:
    paths:
    - public