Skip to content

Commit

Permalink
Run integration tests in parallel in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jan 1, 2018
1 parent 9fdb36c commit fbb3e71
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .circleci/config.yml
@@ -1,11 +1,12 @@
defaults: &defaults
working_directory: /go/src/github.com/moul/sshportal
docker:
- image: circleci/golang:1.8

version: 2
jobs:
build:
docker:
- image: circleci/golang:1.8
# - image: circleci/mysql:9.4

working_directory: /go/src/github.com/moul/sshportal
go.build:
<<: *defaults
steps:
- checkout
- run: make install
Expand All @@ -14,4 +15,26 @@ jobs:
# - run: make integration
- run: go get -u github.com/alecthomas/gometalinter
- run: gometalinter --install
- run: make lint
- run: make lint
docker.integration:
<<: *defaults
steps:
- checkout
- run:
name: Install Docker Compose
command: |
umask 022
curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
- setup_remote_docker:
docker_layer_caching: true
- run: docker build -t moul/sshportal .
- run: make integration


workflows:
version: 2
build_and_integration:
jobs:
- go.build
- docker.integration
# requires: docker.build?

0 comments on commit fbb3e71

Please sign in to comment.