Update .gitlab-ci.yml

[ci skip]
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-05-10 22:53:23 +03:00 committed by GitHub
parent c3ff946e83
commit f6d224c3f8
1 changed files with 43 additions and 1 deletions

View File

@ -1 +1,43 @@
stages:
- build
variables:
GIT_DEPTH: "3"
SIMPLECOV: "true"
RUST_BACKTRACE: "1"
RUSTFLAGS: ""
CARGOFLAGS: ""
cache:
key: "$CI_BUILD_STAGE/$CI_BUILD_REF_NAME"
untracked: true
linux-stable:
stage: build
image: parity/rust:gitlab-ci
only:
- beta
- tags
- stable
- triggers
- master
script:
- rustup default stable
- cargo build -j $(nproc) -p pbtc --release
tags:
- rust
artifacts:
paths:
- target/release/pbtc
name: "stable-x86_64-unknown-linux-gnu_parity_bitcoin"
docker-build:
stage: build
only:
- tags
- triggers
before_script:
- docker info
script:
- if [ "$CI_BUILD_REF_NAME" == "beta-release" ]; then DOCKER_TAG="latest"; else DOCKER_TAG=$CI_BUILD_REF_NAME; fi
- docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity
- sh scripts/docker-build.sh $DOCKER_TAG parity
- docker logout
tags:
- docker