update gitlab-ci

Defines the names of branches and tags for which the job will be built
  only:
    - master
    - beta
    - tags
    - stable
This commit is contained in:
Denis S. Soldatov aka General-Beck 2016-08-18 23:41:33 +07:00 committed by GitHub
parent 9adf77581c
commit 32d07c7339

View File

@ -11,6 +11,11 @@ cache:
linux-beta: linux-beta:
stage: build stage: build
image: ethcore/rust:beta image: ethcore/rust:beta
only:
- master
- beta
- tags
- stable
script: script:
- cargo build --release --verbose - cargo build --release --verbose
- strip target/release/parity - strip target/release/parity
@ -24,6 +29,11 @@ linux-beta:
linux-stable: linux-stable:
stage: build stage: build
image: ethcore/rust:stable image: ethcore/rust:stable
only:
- master
- beta
- tags
- stable
script: script:
- cargo build --release --verbose - cargo build --release --verbose
- strip target/release/parity - strip target/release/parity
@ -37,6 +47,11 @@ linux-stable:
linux-nightly: linux-nightly:
stage: build stage: build
image: ethcore/rust:nightly image: ethcore/rust:nightly
only:
- master
- beta
- tags
- stable
script: script:
- cargo build --release --verbose - cargo build --release --verbose
- strip target/release/parity - strip target/release/parity
@ -50,6 +65,11 @@ linux-nightly:
linux-centos: linux-centos:
stage: build stage: build
image: ethcore/rust-centos:latest image: ethcore/rust-centos:latest
only:
- master
- beta
- tags
- stable
script: script:
- export CXX="g++" - export CXX="g++"
- export CC="gcc" - export CC="gcc"
@ -65,6 +85,11 @@ linux-centos:
linux-armv7: linux-armv7:
stage: build stage: build
image: ethcore/rust-arm:latest image: ethcore/rust-arm:latest
only:
- master
- beta
- tags
- stable
script: script:
- mkdir -p .cargo - mkdir -p .cargo
- echo "[target.armv7-unknown-linux-gnueabihf]" >> .cargo/config - echo "[target.armv7-unknown-linux-gnueabihf]" >> .cargo/config
@ -82,6 +107,11 @@ linux-armv7:
linux-arm: linux-arm:
stage: build stage: build
image: ethcore/rust-arm:latest image: ethcore/rust-arm:latest
only:
- master
- beta
- tags
- stable
script: script:
- mkdir -p .cargo - mkdir -p .cargo
- echo "[target.arm-unknown-linux-gnueabihf]" >> .cargo/config - echo "[target.arm-unknown-linux-gnueabihf]" >> .cargo/config
@ -99,6 +129,11 @@ linux-arm:
linux-armv6: linux-armv6:
stage: build stage: build
image: ethcore/rust-arm:latest image: ethcore/rust-arm:latest
only:
- master
- beta
- tags
- stable
script: script:
- mkdir -p .cargo - mkdir -p .cargo
- echo "[target.arm-unknown-linux-gnueabi]" >> .cargo/config - echo "[target.arm-unknown-linux-gnueabi]" >> .cargo/config
@ -116,6 +151,11 @@ linux-armv6:
linux-aarch64: linux-aarch64:
stage: build stage: build
image: ethcore/rust-arm:latest image: ethcore/rust-arm:latest
only:
- master
- beta
- tags
- stable
script: script:
- mkdir -p .cargo - mkdir -p .cargo
- echo "[target.aarch64-unknown-linux-gnu]" >> .cargo/config - echo "[target.aarch64-unknown-linux-gnu]" >> .cargo/config
@ -132,6 +172,11 @@ linux-aarch64:
name: "${CI_BUILD_NAME}_parity" name: "${CI_BUILD_NAME}_parity"
darwin: darwin:
stage: build stage: build
only:
- master
- beta
- tags
- stable
script: script:
- cargo build --release --verbose - cargo build --release --verbose
tags: tags:
@ -142,6 +187,11 @@ darwin:
name: "${CI_BUILD_NAME}_parity" name: "${CI_BUILD_NAME}_parity"
windows: windows:
stage: build stage: build
only:
- master
- beta
- tags
- stable
script: script:
- set INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs2015\VC\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt - set INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs2015\VC\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt
- set LIB=C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64 - set LIB=C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64