Skip to content

Commit

Permalink
Fix influxdb-ci.yml example
Browse files Browse the repository at this point in the history
- Use golang:1.9.2 image as base image
- dont use gdm dependency manager any more... switching to dep
- remove test-cov-influxql section as influxql is no longer generated
  here
- remove test-unit resources request section to be able to run on small
  k8s cluster
  • Loading branch information
Sebastien Doido authored and jessesuen committed Apr 5, 2018
1 parent da582a5 commit 206451f
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions examples/influxdb-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: source
path: /src
container:
image: golang:1.8.3
image: golang:1.9.2
command: ["/bin/sh", "-c"]
args: ["cd /src && git status && ls -l"]

Expand All @@ -69,12 +69,12 @@ spec:
- name: influxd
path: /go/bin
container:
image: golang:1.8.3
image: golang:1.9.2
command: ["/bin/sh", "-c"]
args: ["
go get github.com/sparrc/gdm &&
cd /go/src/github.com/influxdata/influxdb &&
gdm restore &&
go get github.com/golang/dep/cmd/dep &&
dep ensure -vendor-only &&
go install -v ./...
"]
resources:
Expand All @@ -88,18 +88,14 @@ spec:
- name: source
path: /go/src/github.com/influxdata/influxdb
container:
image: golang:1.8.3
image: golang:1.9.2
command: ["/bin/sh", "-c"]
args: ["
go get github.com/sparrc/gdm &&
cd /go/src/github.com/influxdata/influxdb &&
gdm restore &&
go test -v ./...
go get github.com/golang/dep/cmd/dep &&
dep ensure -vendor-only &&
go test -parallel=1 ./...
"]
resources:
requests:
memory: 5120Mi
cpu: 200m
- name: test-cov
inputs:
Expand All @@ -124,16 +120,6 @@ spec:
artifacts:
- name: source
from: "{{inputs.artifacts.source}}"
- name: test-cov-influxql
template: test-cov-base
arguments:
parameters:
- name: package
value: "influxql"
artifacts:
- name: source
from: "{{inputs.artifacts.source}}"

- name: test-cov-base
inputs:
parameters:
Expand All @@ -146,12 +132,12 @@ spec:
- name: covreport
path: /tmp/index.html
container:
image: golang:1.8.3
image: golang:1.9.2
command: ["/bin/sh", "-c"]
args: ["
go get github.com/sparrc/gdm &&
cd /go/src/github.com/influxdata/influxdb &&
gdm restore &&
go get github.com/golang/dep/cmd/dep &&
dep ensure -vendor-only &&
go test -v -coverprofile /tmp/cov.out ./{{inputs.parameters.package}} &&
go tool cover -html=/tmp/cov.out -o /tmp/index.html
"]
Expand Down

0 comments on commit 206451f

Please sign in to comment.