.gitlab-ci.yml 988 B
Newer Older
stages:
  - test
  - build

Denis_P's avatar
Denis_P committed
image:                             parity/shasper-ci:stretch

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

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