sshportal/.circleci/config.yml
2018-11-16 15:02:47 +01:00

43 lines
1.1 KiB
YAML

defaults: &defaults
working_directory: /go/src/github.com/moul/sshportal
docker:
- image: circleci/golang:1.11
environment:
GO111MODULE: "on"
version: 2
jobs:
go.build:
<<: *defaults
steps:
- checkout
- run: make install
- run: go mod download
- run: go mod vendor
- run: GO111MODULE=off go test -v ./...
# - run: make integration
#- run: go get -u github.com/alecthomas/gometalinter
#- run: gometalinter --install
#- 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?