Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 15 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ stages:
- test
- build
- publish
- publish-onchain
- optional

image: parity/rust:gitlab-ci
Expand All @@ -14,6 +13,12 @@ variables:
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
CARGO_TARGET: x86_64-unknown-linux-gnu

.no_git: &no_git
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none


.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
only: &releaseable_branches
- stable
Expand Down Expand Up @@ -94,6 +99,7 @@ build-windows:
publish-docker:
stage: publish
only: *releaseable_branches
<<: *no_git
Comment thread
TriplEight marked this conversation as resolved.
cache: {}
dependencies:
- build-linux
Expand All @@ -103,11 +109,12 @@ publish-docker:
- scripts/gitlab/publish-docker.sh parity

publish-snap:
stage: optional #publish
stage: publish
only: *releaseable_branches
# <<: *no_git
image: snapcore/snapcraft
variables:
BUILD_ARCH: amd64
BUILD_ARCH: amd64
cache: {}
before_script: *determine_version
dependencies:
Expand All @@ -119,18 +126,17 @@ publish-snap:
allow_failure: true
<<: *collect_artifacts

publish-onnet-update:
stage: publish-onchain
publish-onchain:
stage: publish
only: *releaseable_branches
<<: *no_git
cache: {}
dependencies:
- build-linux
- build-darwin
- build-windows
- publish-awss3-release
before_script: *determine_version
script:
- scripts/gitlab/publish-onnet-update.sh
- scripts/gitlab/publish-onchain.sh
tags:
- linux-docker

Expand All @@ -155,6 +161,7 @@ publish-awss3-release:
image: parity/awscli:latest
stage: publish
only: *releaseable_branches
<<: *no_git
cache: {}
dependencies:
- build-linux
Expand Down
1 change: 1 addition & 0 deletions scripts/gitlab/build-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ else
fi

echo "_____ Post-processing binaries _____"
rm -rf artifacts/*
mkdir -p artifacts/$CARGO_TARGET
cd artifacts/$CARGO_TARGET

Expand Down