Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

CI: Remove unnecessary pipes #9681

Merged
merged 40 commits into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
aa34dfa
ci: reduce gitlab pipelines significantly
5chdn Oct 1, 2018
94cf19d
ci: build pipeline for PR
5chdn Oct 1, 2018
ff311d4
ci: remove dead weight
5chdn Oct 1, 2018
ffadc7f
ci: remove github release script
5chdn Oct 1, 2018
32c812a
ci: remove forever broken aura tests
5chdn Oct 1, 2018
42f3100
ci: add random stuff to the end of the pipes
5chdn Oct 1, 2018
99e8652
ci: add wind and mac to the end of the pipe
5chdn Oct 1, 2018
bc3c111
ci: remove snap artifacts
5chdn Oct 1, 2018
e18270f
ci: (re)move dockerfiles
5chdn Oct 1, 2018
88b6169
ci: clarify job names
5chdn Oct 1, 2018
244528e
ci: add cargo audit job
5chdn Oct 1, 2018
ab9c371
ci: make audit script executable
5chdn Oct 1, 2018
269d7c1
ci: ignore snap and docker files for rust check
5chdn Oct 1, 2018
f0f123c
ci: simplify audit script
5chdn Oct 1, 2018
597bbfc
ci: rename misc to optional
5chdn Oct 1, 2018
d41e3bc
ci: add publish script to releaseable branches
5chdn Oct 1, 2018
8eb65a9
ci: more verbose cp command for windows build
5chdn Oct 1, 2018
ab61722
ci: fix weird binary checksum logic in push script
5chdn Oct 1, 2018
a86d005
ci: fix regex in push script for windows
5chdn Oct 1, 2018
0190876
ci: simplify gitlab caching
5chdn Oct 1, 2018
9da093a
docs: align README with ci changes
5chdn Oct 1, 2018
0e8263b
ci: specify default cargo target dir
5chdn Oct 1, 2018
e915d5d
ci: print verbose environment
5chdn Oct 1, 2018
4da8e25
ci: proper naming of scripts
5chdn Oct 1, 2018
f4774c5
ci: restore docker files
5chdn Oct 1, 2018
91d732f
ci: use docker hub file
5chdn Oct 1, 2018
a125169
ci: use cargo home instead of cargo target dir
5chdn Oct 1, 2018
8e8cb9a
ci: touch random rust file to trigger real builds
5chdn Oct 1, 2018
885aab6
ci: set cargo target dir for audit script
5chdn Oct 1, 2018
778493a
ci: remove temp file
5chdn Oct 1, 2018
d890ab3
ci: don't export the cargo target dir in the audit script
5chdn Oct 1, 2018
a99c6a3
ci: fix windows unbound variable
5chdn Oct 1, 2018
506842b
docs: fix gitlab badge path
5chdn Oct 1, 2018
da0f3cc
rename deprecated gitlab ci variables
gabreal Oct 1, 2018
f749b0e
ci: fix git compare for nightly builds
5chdn Oct 1, 2018
0ababae
test: skip c++ example for all platforms but linux
5chdn Oct 1, 2018
b1f501a
Merge branch 'a5-gitlab-light' of github.com:paritytech/parity-ethere…
5chdn Oct 1, 2018
a02990e
ci: add random rust file to trigger tests
5chdn Oct 1, 2018
4783af1
ci: remove random rust file
5chdn Oct 1, 2018
c146243
disable cpp lib test for mac, win and beta (#9686)
gabreal Oct 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
331 changes: 76 additions & 255 deletions .gitlab-ci.yml

Large diffs are not rendered by default.

24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

<p align="center"><strong><a href="https://github.com/paritytech/parity-ethereum/releases/latest">» Download the latest release «</a></strong></p>

<p align="center"><a href="https://gitlab.parity.io/parity/parity/commits/master" target="_blank"><img src="https://gitlab.parity.io/parity/parity/badges/master/build.svg" /></a>
<a href="https://codecov.io/gh/paritytech/parity-ethereum" target="_blank"><img src="https://codecov.io/gh/paritytech/parity-ethereum/branch/master/graph/badge.svg" /></a>
<a href="https://build.snapcraft.io/user/paritytech/parity" target="_blank"><img src="https://build.snapcraft.io/badge/paritytech/parity.svg" /></a>
<p align="center"><a href="https://gitlab.parity.io/parity/parity-ethereum/commits/master" target="_blank"><img src="https://gitlab.parity.io/parity/parity-ethereum/badges/master/build.svg" /></a>
<a href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank"><img src="https://img.shields.io/badge/license-GPL%20v3-green.svg" /></a></p>

**Built for mission-critical use**: Miners, service providers, and exchanges need fast synchronisation and maximum uptime. Parity Ethereum provides the core infrastructure essential for speedy and reliable services.
Expand Down Expand Up @@ -60,26 +58,6 @@ Once you have `rustup` installed, then you need to install:

Make sure that these binaries are in your `PATH`. After that, you should be able to build Parity Ethereum from source.

## Install from the Snapcraft Store

In any of the [supported Linux distros](https://snapcraft.io/docs/core/install):

```bash
sudo snap install parity
```

Alternatively, if you want to contribute testing the upcoming release:

```bash
sudo snap install parity --beta
```

Moreover, to test the latest code from the master branch:

```bash
sudo snap install parity --edge
```

## Build from Source Code

```bash
Expand Down
12 changes: 0 additions & 12 deletions scripts/aura-test.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 9 additions & 3 deletions scripts/gitlab/build-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

set -e # fail on any error
set -u # treat unset variables as error

echo "__________Show ENVIROMENT__________"
echo "CC: " $CC
echo "CXX: " $CXX
echo "CI_SERVER_NAME: " $CI_SERVER_NAME
echo "CARGO_HOME: " $CARGO_HOME
echo "BUILD_TARGET: " $BUILD_TARGET
echo "BUILD_ARCH: " $BUILD_ARCH
echo "CARGO_TARGET: " $CARGO_TARGET
echo "CC: " $CC
echo "CXX: " $CXX

echo "__________CARGO CONFIG__________"
rm -rf .cargo
mkdir -p .cargo
rm -f .cargo/config
echo "[target.$CARGO_TARGET]" >> .cargo/config
echo "linker= \"$CC\"" >> .cargo/config
cat .cargo/config
Expand Down
27 changes: 20 additions & 7 deletions scripts/gitlab/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,39 @@ set INCLUDE="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs20
set LIB="C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64"

rustup default stable-x86_64-pc-windows-msvc
echo "_____ Building _____"

echo "__________Show ENVIROMENT__________"
echo "CI_SERVER_NAME: " $CI_SERVER_NAME
echo "CARGO_HOME: " $CARGO_HOME
echo "BUILD_TARGET: " $BUILD_TARGET
echo "BUILD_ARCH: " $BUILD_ARCH
echo "CARGO_TARGET: " $CARGO_TARGET

echo "_____ Building target: "$CARGO_TARGET" _____"
time cargo build --target $CARGO_TARGET --release --features final
time cargo build --target $CARGO_TARGET --release -p evmbin
time cargo build --target $CARGO_TARGET --release -p ethstore-cli
time cargo build --target $CARGO_TARGET --release -p ethkey-cli
time cargo build --target $CARGO_TARGET --release -p whisper-cli

echo "__________Sign binaries__________"
scripts/gitlab/sign.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity.exe
scripts/gitlab/sign.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity-evm.exe
scripts/gitlab/sign.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethstore.exe
scripts/gitlab/sign.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethkey.exe
scripts/gitlab/sign.cmd $keyfile $certpass target/$CARGO_TARGET/release/whisper.exe
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity.exe
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/parity-evm.exe
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethstore.exe
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/ethkey.exe
scripts/gitlab/sign-win.cmd $keyfile $certpass target/$CARGO_TARGET/release/whisper.exe

echo "_____ Post-processing binaries _____"
rm -rf artifacts
mkdir -p artifacts
cd artifacts
mkdir -p $CARGO_TARGET
cd $CARGO_TARGET
cp --verbose ../../target/$CARGO_TARGET/release/{parity.exe,parity-evm.exe,ethstore.exe,ethkey.exe,whisper.exe} .
cp --verbose ../../target/$CARGO_TARGET/release/parity.exe ./parity.exe
cp --verbose ../../target/$CARGO_TARGET/release/parity-evm.exe ./parity-evm.exe
cp --verbose ../../target/$CARGO_TARGET/release/ethstore.exe ./ethstore.exe
cp --verbose ../../target/$CARGO_TARGET/release/ethkey.exe ./ethkey.exe
cp --verbose ../../target/$CARGO_TARGET/release/whisper.exe ./whisper.exe

echo "_____ Calculating checksums _____"
for binary in $(ls)
Expand Down
4 changes: 2 additions & 2 deletions scripts/gitlab/rustfmt.sh → scripts/gitlab/cargo-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set -e # fail on any error
set -u # treat unset variables as error

cargo install rustfmt-nightly
cargo fmt -- --write-mode=diff
CARGO_TARGET_DIR=./target cargo +stable install cargo-audit
cargo +stable audit
7 changes: 0 additions & 7 deletions scripts/gitlab/clippy.sh

This file was deleted.

20 changes: 0 additions & 20 deletions scripts/gitlab/coverage.sh

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/gitlab/install-readme.sh

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/gitlab/package-snap.sh

This file was deleted.

49 changes: 49 additions & 0 deletions scripts/gitlab/publish-awss3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

set -e # fail on any error
set -u # treat unset variables as error

echo "__________Register Release__________"
DATA="secret=$RELEASES_SECRET"

echo "Pushing release to Mainnet"
./scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1337/push-release/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA"

echo "Pushing release to Kovan"
./scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1338/push-release/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA"

cd artifacts
ls -l | sort -k9
filetest=( * )
echo ${filetest[*]}
for DIR in "${filetest[@]}";
do
cd $DIR
if [[ $DIR =~ "windows" ]];
then
WIN=".exe";
else
WIN="";
fi
sha3=$(cat parity.sha3 | awk '{print $1}')
case $DIR in
x86_64* )
DATA="commit=$CI_COMMIT_SHA&sha3=$sha3&filename=parity$WIN&secret=$RELEASES_SECRET"
../../scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1337/push-build/$CI_COMMIT_REF_NAME/$DIR"
# Kovan
../../scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_COMMIT_REF_NAME/$DIR"
;;
esac
cd ..
done

echo "__________Push binaries to AWS S3____________"
aws configure set aws_access_key_id $s3_key
aws configure set aws_secret_access_key $s3_secret
if [[ "$CI_COMMIT_REF_NAME" = "beta" || "$CI_COMMIT_REF_NAME" = "stable" || "$CI_COMMIT_REF_NAME" = "nightly" ]];
then
export S3_BUCKET=builds-parity-published;
else
export S3_BUCKET=builds-parity;
fi
aws s3 sync ./ s3://$S3_BUCKET/$CI_COMMIT_REF_NAME/
6 changes: 3 additions & 3 deletions scripts/gitlab/publish-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e # fail on any error
set -u # treat unset variables as error

if [ "$CI_COMMIT_REF_NAME" == "master" ];
then export DOCKER_BUILD_TAG="latest";
else export DOCKER_BUILD_TAG=$CI_COMMIT_REF_NAME;
then export DOCKER_BUILD_TAG="latest";
else export DOCKER_BUILD_TAG=$CI_COMMIT_REF_NAME;
fi
docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity

Expand All @@ -17,6 +17,6 @@ export DOCKER_TARGET=$1
echo $DOCKER_TARGET

echo "__________Docker build and push__________"
docker build --build-arg TARGET=$DOCKER_TARGET --no-cache=true --tag parity/$DOCKER_TARGET:$DOCKER_BUILD_TAG -f docker/hub/Dockerfile .
docker build --build-arg TARGET=$DOCKER_TARGET --no-cache=true --tag parity/$DOCKER_TARGET:$DOCKER_BUILD_TAG -f scripts/docker/hub/Dockerfile .
docker push parity/$DOCKER_TARGET:$DOCKER_BUILD_TAG
docker logout
18 changes: 0 additions & 18 deletions scripts/gitlab/publish-snap.sh

This file was deleted.

74 changes: 0 additions & 74 deletions scripts/gitlab/push.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions scripts/gitlab/templates/release-table.md

This file was deleted.

Loading