2018-05-29 16:53:19 -04:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
defaults: &defaults
|
|
|
|
working_directory: ~/go/src/github.com/docker/libnetwork
|
|
|
|
docker:
|
|
|
|
- image: 'circleci/golang:1.10'
|
|
|
|
environment:
|
2018-06-19 20:19:16 -04:00
|
|
|
dockerbuildargs: .
|
2018-05-29 16:53:19 -04:00
|
|
|
dockerargs: --privileged -e CIRCLECI
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
builder:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2018-06-19 20:19:16 -04:00
|
|
|
version: 18.05.0-ce
|
2018-05-29 16:53:19 -04:00
|
|
|
reusable: true
|
|
|
|
exclusive: false
|
|
|
|
- run: make builder
|
|
|
|
|
|
|
|
build:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2018-06-19 20:19:16 -04:00
|
|
|
version: 18.05.0-ce
|
2018-05-29 16:53:19 -04:00
|
|
|
reusable: true
|
|
|
|
exclusive: false
|
|
|
|
- run: make build
|
|
|
|
|
|
|
|
lint:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2018-06-19 20:19:16 -04:00
|
|
|
version: 18.05.0-ce
|
2018-05-29 16:53:19 -04:00
|
|
|
reusable: true
|
|
|
|
exclusive: false
|
2018-06-16 13:50:38 -04:00
|
|
|
- run: make check
|
2018-05-29 16:53:19 -04:00
|
|
|
|
|
|
|
cross:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2018-06-19 20:19:16 -04:00
|
|
|
version: 18.05.0-ce
|
2018-05-29 16:53:19 -04:00
|
|
|
reusable: true
|
|
|
|
exclusive: false
|
|
|
|
- run: make cross
|
|
|
|
|
|
|
|
unit-tests:
|
|
|
|
<<: *defaults
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker:
|
2018-06-19 20:19:16 -04:00
|
|
|
version: 18.05.0-ce
|
2018-05-29 16:53:19 -04:00
|
|
|
reusable: true
|
|
|
|
exclusive: false
|
|
|
|
- run: make unit-tests
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
ci:
|
|
|
|
jobs:
|
|
|
|
- builder
|
|
|
|
- build:
|
|
|
|
requires:
|
|
|
|
- builder
|
|
|
|
- lint:
|
|
|
|
requires:
|
|
|
|
- builder
|
|
|
|
- cross:
|
|
|
|
requires:
|
|
|
|
- builder
|
|
|
|
- unit-tests:
|
|
|
|
requires:
|
|
|
|
- builder
|