travis: move deploy builds to their own stage

This commit is contained in:
Guillaume Ballet 2019-11-20 10:38:59 +01:00
parent 3a4a3d080b
commit bfaffa83a3

View file

@ -1,6 +1,11 @@
language: go language: go
go_import_path: github.com/ethereum/go-ethereum go_import_path: github.com/ethereum/go-ethereum
sudo: false sudo: false
stages:
- lint
- build
- name: deploy
if: type = push
jobs: jobs:
include: include:
# This builder only tests code linters on latest version of Go # This builder only tests code linters on latest version of Go
@ -42,7 +47,6 @@ jobs:
- go run build/ci.go test -coverage $TEST_PACKAGES - go run build/ci.go test -coverage $TEST_PACKAGES
- stage: build - stage: build
if: type = pull_request
os: linux os: linux
arch: arm64 arch: arm64
dist: xenial dist: xenial
@ -68,8 +72,7 @@ jobs:
- go run build/ci.go test -coverage $TEST_PACKAGES - go run build/ci.go test -coverage $TEST_PACKAGES
# This builder does the Ubuntu PPA upload # This builder does the Ubuntu PPA upload
- stage: build - stage: deploy
if: type = push
os: linux os: linux
dist: xenial dist: xenial
go: 1.13.x go: 1.13.x
@ -91,8 +94,7 @@ jobs:
- go run build/ci.go debsrc -goversion 1.13.4 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" - go run build/ci.go debsrc -goversion 1.13.4 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>"
# This builder does the Linux Azure uploads # This builder does the Linux Azure uploads
- stage: build - stage: deploy
if: type = push
os: linux os: linux
dist: xenial dist: xenial
sudo: required sudo: required
@ -126,8 +128,7 @@ jobs:
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds - go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
# This builder does the Linux Azure MIPS xgo uploads # This builder does the Linux Azure MIPS xgo uploads
- stage: build - stage: deploy
if: type = push
os: linux os: linux
dist: xenial dist: xenial
services: services:
@ -155,8 +156,7 @@ jobs:
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds - go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
# This builder does the Android Maven and Azure uploads # This builder does the Android Maven and Azure uploads
- stage: build - stage: deploy
if: type = push
os: linux os: linux
dist: xenial dist: xenial
addons: addons:
@ -193,8 +193,7 @@ jobs:
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds - go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads # This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
- stage: build - stage: deploy
if: type = push
os: osx os: osx
go: 1.13.x go: 1.13.x
env: env:
@ -223,8 +222,7 @@ jobs:
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds - go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
# This builder does the Azure archive purges to avoid accumulating junk # This builder does the Azure archive purges to avoid accumulating junk
- stage: build - stage: deploy
if: type = cron
os: linux os: linux
dist: xenial dist: xenial
go: 1.13.x go: 1.13.x