2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
2016-11-04 10:07:23 +01:00
|
|
|
- test
|
|
|
|
- js-build
|
2016-11-04 10:17:16 +01:00
|
|
|
- build
|
2016-07-28 17:34:32 +02:00
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "3"
|
2016-10-30 09:55:46 +01:00
|
|
|
SIMPLECOV: "true"
|
2016-07-28 17:34:32 +02:00
|
|
|
RUST_BACKTRACE: "1"
|
2016-10-31 09:47:47 +01:00
|
|
|
RUSTFLAGS: ""
|
2016-10-31 10:36:30 +01:00
|
|
|
CARGOFLAGS: ""
|
2016-07-28 17:34:32 +02:00
|
|
|
cache:
|
2016-11-04 10:07:23 +01:00
|
|
|
key: "$CI_BUILD_REF_NAME"
|
2016-07-28 17:34:32 +02:00
|
|
|
untracked: true
|
2016-11-07 12:00:01 +01:00
|
|
|
linux-i686:
|
|
|
|
stage: build
|
|
|
|
image: ethcore/rust-i686:latest
|
2016-09-07 18:49:44 +02:00
|
|
|
only:
|
2016-11-04 11:11:25 +01:00
|
|
|
- $NIGHTLY
|
2016-09-07 18:49:44 +02:00
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- stable
|
|
|
|
script:
|
2016-10-27 09:00:05 +02:00
|
|
|
- export HOST_CC=gcc
|
|
|
|
- export HOST_CXX=g++
|
2016-09-14 09:35:09 +02:00
|
|
|
- rm -rf .cargo
|
|
|
|
- mkdir -p .cargo
|
2016-11-07 12:00:01 +01:00
|
|
|
#- echo "[target.armv7-unknown-linux-gnueabihf]" >> .cargo/config
|
|
|
|
#- echo "linker= \"arm-linux-gnueabihf-gcc\"" >> .cargo/config
|
|
|
|
#- cat .cargo/config
|
|
|
|
- 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
|
2016-10-26 05:57:35 +02:00
|
|
|
- export VER=$(grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
|
2016-11-07 12:00:01 +01:00
|
|
|
- dpkg-deb -b deb "parity_"$VER"_i386.deb"
|
|
|
|
- md5sum "parity_"$VER"_i386.deb" >> "parity_"$VER"_i386.deb.md5"
|
2016-10-30 09:55:46 +01:00
|
|
|
- aws configure set aws_access_key_id $s3_key
|
2016-09-21 13:45:21 +02:00
|
|
|
- aws configure set aws_secret_access_key $s3_secret
|
2016-11-07 12:00:01 +01:00
|
|
|
- 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"
|
2016-07-28 17:34:32 +02:00
|
|
|
tags:
|
|
|
|
- rust
|
2016-11-07 12:00:01 +01:00
|
|
|
- rust-i686
|
2016-07-28 17:34:32 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-11-07 12:00:01 +01:00
|
|
|
- target/i686-unknown-linux-gnu/release/parity
|
|
|
|
name: "i686-unknown-linux-gnu"
|
2016-08-23 18:18:13 +02:00
|
|
|
allow_failure: true
|