Update gitlab-ci

skip i686
skip windows and darwin test's

Former-commit-id: 441657dc5f4c9b9ebf2a12af9a2be008d44dac40
This commit is contained in:
Denis S. Soldatov aka General-Beck 2016-11-07 20:45:16 +07:00 committed by GitHub
parent 0799dbf95f
commit aea995cf55
1 changed files with 38 additions and 37 deletions

View File

@ -8,7 +8,7 @@ variables:
RUST_BACKTRACE: "1"
RUSTFLAGS: ""
CARGOFLAGS: ""
NIGHTLY: "nigtly"
NIGHTLY: "nightly"
cache:
key: "$CI_BUILD_REF_NAME"
untracked: true
@ -135,39 +135,40 @@ linux-centos:
paths:
- target/release/parity
name: "x86_64-unknown-centos-gnu_parity"
linux-i686:
stage: build
image: ethcore/rust-i686:latest
only:
- $NIGHTLY
- beta
- tags
- stable
script:
- export HOST_CC=gcc
- export HOST_CXX=g++
- cargo build --target i686-unknown-linux-gnu --release $CARGOFLAGS
- strip target/i686-unknown-linux-gnu/release/parity
- md5sum target/i686-unknown-linux-gnu/release/parity >> parity.md5
- sh scripts/deb-build.sh i386
- cp target/i686-unknown-linux-gnu/release/parity deb/usr/bin/parity
- export VER=$(grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
- dpkg-deb -b deb "parity_"$VER"_i386.deb"
- md5sum "parity_"$VER"_i386.deb" >> "parity_"$VER"_i386.deb.md5"
- aws configure set aws_access_key_id $s3_key
- aws configure set aws_secret_access_key $s3_secret
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/parity --body target/i686-unknown-linux-gnu/release/parity
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/parity.md5 --body parity.md5
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/"parity_"$VER"_i386.deb" --body "parity_"$VER"_i386.deb"
- aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/"parity_"$VER"_i386.deb.md5" --body "parity_"$VER"_i386.deb.md5"
tags:
- rust
- rust-i686
artifacts:
paths:
- target/i686-unknown-linux-gnu/release/parity
name: "i686-unknown-linux-gnu"
allow_failure: true
#linux-i686:
# stage: build
# image: ethcore/rust-i686:latest
# only:
# - $NIGHTLY
# - beta
# - tags
# - stable
# script:
# - export HOST_CC=gcc
# - export HOST_CXX=g++
# - cargo build --target i686-unknown-linux-gnu --release $CARGOFLAGS
# - strip target/i686-unknown-linux-gnu/release/parity
# - md5sum target/i686-unknown-linux-gnu/release/parity >> parity.md5
# - sh scripts/deb-build.sh i386
# - cp target/i686-unknown-linux-gnu/release/parity deb/usr/bin/parity
# - export VER=$(grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
# - dpkg-deb -b deb "parity_"$VER"_i386.deb"
# - md5sum "parity_"$VER"_i386.deb" >> "parity_"$VER"_i386.deb.md5"
# - aws configure set aws_access_key_id $s3_key
# - aws configure set aws_secret_access_key $s3_secret
# - aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/parity --body target/i686-unknown-linux-gnu/release/parity
# - aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/parity.md5 --body parity.md5
# - aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/"parity_"$VER"_i386.deb" --body "parity_"$VER"_i386.deb"
# - aws s3api put-object --bucket builds-parity --key $CI_BUILD_REF_NAME/i686-unknown-linux-gnu/"parity_"$VER"_i386.deb.md5" --body "parity_"$VER"_i386.deb.md5"
# tags:
# - rust
# - rust-i686
# artifacts:
# paths:
# - target/i686-unknown-linux-gnu/release/parity
# name: "i686-unknown-linux-gnu"
# allow_failure: true
linux-armv7:
stage: build
image: ethcore/rust-armv7:latest
@ -395,8 +396,8 @@ windows:
test-darwin:
stage: test
only:
- beta
- tags
# - beta
# - tags
- stable
before_script:
- git submodule update --init --recursive
@ -408,8 +409,8 @@ test-darwin:
test-windows:
stage: test
only:
- beta
- tags
# - beta
# - tags
- stable
before_script:
- git submodule update --init --recursive