Compare commits

...

2 Commits

Author SHA1 Message Date
Adrien Marquès f13c25c7d3 fix 2018-11-16 08:32:47 +01:00
Adrien Marquès bd522bde3a try adding 2 go versions 2018-11-16 08:28:41 +01:00
1 changed files with 45 additions and 38 deletions

View File

@ -1,14 +1,9 @@
version: 2 version: 2
jobs:
build: # runs not using Workflows must have a `build` job as entry point
docker:
- image: circleci/golang
shared: &shared
environment: # environment variables for the build itself environment: # environment variables for the build itself
GOPATH: /go GOPATH: /go
TEST_RESULTS: /tmp/test-results TEST_RESULTS: /tmp/test-results
COVER_PROFILE: /tmp/coverage.out
steps: # steps that comprise the `build` job steps: # steps that comprise the `build` job
- checkout # check out source code to working directory - checkout # check out source code to working directory
- run: mkdir -p $TEST_RESULTS # create the test results directory - run: mkdir -p $TEST_RESULTS # create the test results directory
@ -16,7 +11,6 @@ jobs:
- restore_cache: # restores saved cache if no changes are detected since last run - restore_cache: # restores saved cache if no changes are detected since last run
keys: keys:
- v1-pkg-cache - v1-pkg-cache
- run: - run:
name: Load dependencies name: Load dependencies
command: go get github.com/mattn/goveralls && go get github.com/go-ini/ini && go get gopkg.in/yaml.v2 command: go get github.com/mattn/goveralls && go get github.com/go-ini/ini && go get gopkg.in/yaml.v2
@ -32,9 +26,7 @@ jobs:
- run: - run:
name: go vet name: go vet
command: go vet github.com/xdrm-brackets/nix-amer/... command: go vet github.com/xdrm-brackets/nix-amer/...
- run:
name: Update coveralls.io
command: /go/bin/goveralls -coverprofile=$COVER_PROFILE -service=circle-ci -repotoken=$COVERALLS_TOKEN
- store_artifacts: # Upload test summary for display in Artifacts - store_artifacts: # Upload test summary for display in Artifacts
path: /tmp/test-results path: /tmp/test-results
@ -42,3 +34,18 @@ jobs:
- store_test_results: # Upload test results for display in Test Summary - store_test_results: # Upload test results for display in Test Summary
path: /tmp/test-results path: /tmp/test-results
jobs:
latest:
docker:
- image: circleci/golang
<<: *shared
- run:
name: Update coveralls.io
command: /go/bin/goveralls -coverprofile=$COVER_PROFILE -service=circle-ci -repotoken=$COVERALLS_TOKEN
go-1.10:
docker:
- image: circleci/golang:1.10
<<: *shared