.gitlab-ci.yml 1.05 KiB
Newer Older
stages:
  - test
  - build

image:                             parity/rust-builder:latest

variables:
Denis_P's avatar
Denis_P committed
  GIT_STRATEGY:                    fetch
  GIT_SUBMODULE_STRATEGY:          recursive
  CARGO_HOME:                      "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
  SCCACHE_DIR:                     "/ci-cache/${CI_PROJECT_NAME}/sccache"
Denis_P's avatar
Denis_P committed
  SCCACHE_CACHE_SIZE:              50G
  CI_SERVER_NAME:                  "GitLab CI"
  RUST_TOOLCHAIN:                  "stable"

before_script:
Denis_P's avatar
Denis_P committed
  - sccache -s
  - ./scripts/init.sh
  - ./scripts/build.sh


#### stage:                        test

test-rust-stable:
  stage:                           test
  script:
    - time cargo test --all --release --locked
Denis_P's avatar
Denis_P committed
    - sccache -s
  only:
    - triggers
    - tags
    - master
    - schedules
    - web
Denis_P's avatar
Denis_P committed
    - linux-docker


#### stage:                        build

build-linux:
  stage:                           build
  script:
Denis_P's avatar
Denis_P committed
    - time cargo build --release
    - sccache -s
Denis_P's avatar
Denis_P committed
    - linux-docker
  only:
    - master
    - tags
    - web