Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
travis: split jobs into different stages (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored Jul 30, 2019
1 parent 496b08b commit 8b8278e
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ branches:
only:
- master
- /v(\d+\.)(\d+\.)(\d)/
matrix:
jobs:
include:
- os: linux
# This builder only tests code linters on latest version of Go
- stage: lint
os: linux
dist: trusty
go: 1.12.x
env:
- lint
script:
- go run build/ci.go lint

# Go 1.11.x is needed because of the Ubuntu PPA builds
- stage: build
os: linux
dist: trusty
sudo: required
go: 1.11.x
Expand All @@ -19,7 +31,8 @@ matrix:
- go run build/ci.go test -coverage $TEST_PACKAGES

# These are the latest Go versions.
- os: linux
- stage: build
os: linux
dist: trusty
sudo: required
go: 1.12.x
Expand All @@ -30,7 +43,8 @@ matrix:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

- os: osx
- stage: build
os: osx
go: 1.12.x
script:
- echo "Increase the maximum number of open file descriptors on macOS"
Expand All @@ -45,17 +59,9 @@ matrix:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

# This builder only tests code linters on latest version of Go
- os: linux
dist: trusty
go: 1.12.x
env:
- lint
script:
- go run build/ci.go lint

# This builder does the Ubuntu PPA upload
- if: type = push
- stage: deploy
if: type = push
os: linux
dist: trusty
go: 1.12.x
Expand All @@ -75,7 +81,8 @@ matrix:
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user ethswarm -signer "Ethereum Swarm Linux Builder <swarm@ethereum.org>"

# This builder does the Linux Azure uploads
- if: type = push
- stage: deploy
if: type = push
os: linux
dist: trusty
sudo: required
Expand Down Expand Up @@ -107,7 +114,8 @@ matrix:
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload ethswarm/builds

# This builder does the Linux Azure MIPS xgo uploads
- if: type = push
- stage: deploy
if: type = push
os: linux
dist: trusty
services:
Expand All @@ -133,7 +141,8 @@ matrix:
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload ethswarm/builds

# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
- if: type = push
- stage: deploy
if: type = push
os: osx
go: 1.12.x
env:
Expand All @@ -144,7 +153,8 @@ matrix:


# This builder does the Azure archive purges to avoid accumulating junk
- if: type = cron
- stage: cleanup
if: type = cron
os: linux
dist: trusty
go: 1.12.x
Expand Down

0 comments on commit 8b8278e

Please sign in to comment.