Skip to content

Commit

Permalink
ci: first shot at drone ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Pastoor committed Jul 18, 2021
1 parent 40bff60 commit 2ce85a7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
41 changes: 35 additions & 6 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
---
kind: pipeline
type: docker
name: default

name: integration-tests
steps:
- name: test
image: evol262/pkgr
commands:
- make test-mixed
- name: pull
image: omerxx/drone-ecr-auth
commands:
- $(aws ecr get-login --no-include-email --region us-east-1)
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci:4.1.0
volumes:
- name: docker.sock
path: /var/run/docker.sock
- name: build
image: golang:1.16
commands:
- make install
- go get ./...
volumes:
- name: go
path: /go
- name: version
image: 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci:4.1.0
pull: never
volumes:
- name: go
path: /go
commands:
- export PATH=/go/bin:$PATH
- cd integration_tests/version
- make test

volumes:
- name: docker.sock
host:
path: /var/run/docker.sock
- name: go
temp: { }
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaW
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/metrumresearchgroup/command v0.0.1 h1:GKOmZN7jIQALPtVQ9g3dx+o8IkpUaXceE/keunP36NQ=
github.com/metrumresearchgroup/command v0.0.1/go.mod h1:RN0GpeHtPOEpPGT7LrXrxsfzHr4Q8sbFZvpRlV20mys=
github.com/metrumresearchgroup/command v0.0.2-0.20210716145028-d3194efebb33 h1:mWlNMsqkEIKU2qMwwm1MnRAb8ZQLgERazUZY7BfrMX0=
github.com/metrumresearchgroup/command v0.0.2-0.20210716145028-d3194efebb33/go.mod h1:RN0GpeHtPOEpPGT7LrXrxsfzHr4Q8sbFZvpRlV20mys=
github.com/mholt/archiver/v3 v3.5.0 h1:nE8gZIrw66cu4osS/U7UW7YDuGMHssxKutU8IfWxwWE=
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/integration_helper/runt.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func RunTest(tgt targets.Target) error {
return err
}

if strings.Contains(r.Output, "FAIL:") {
if strings.Contains(string(r.Output), "FAIL:") {
return errors.New("found FAIL message")
}

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/version/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEST_HOME=${PWD}

.PHONY: clean
.PHONY: clean update test test-json

clean:
go clean -testcache
Expand Down

0 comments on commit 2ce85a7

Please sign in to comment.