2017-04-27 17:07:51 -04:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
working_directory: ~/cli
|
|
|
|
docker:
|
|
|
|
- image: docker:17.04
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- setup_remote_docker
|
2017-05-02 16:40:29 -04:00
|
|
|
- run:
|
|
|
|
name: "Lint"
|
2017-05-02 15:10:03 -04:00
|
|
|
command: |
|
|
|
|
docker build -f dockerfiles/Dockerfile.lint --tag cli-linter .
|
|
|
|
docker run cli-linter
|
|
|
|
- run:
|
|
|
|
name: "Build and Unit Test"
|
2017-05-02 16:40:29 -04:00
|
|
|
command: |
|
|
|
|
docker build -f dockerfiles/Dockerfile.ci --tag cli-builder .
|
|
|
|
docker run cli-builder
|
|
|
|
- run:
|
|
|
|
name: "Vendor"
|
|
|
|
command: |
|
|
|
|
docker run cli-builder make vendor
|