diff options
Diffstat (limited to '')
-rw-r--r-- | dependencies/pkg/mod/github.com/ssgreg/journald@v1.0.0/.travis.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/github.com/ssgreg/journald@v1.0.0/.travis.yml b/dependencies/pkg/mod/github.com/ssgreg/journald@v1.0.0/.travis.yml new file mode 100644 index 0000000..79114b8 --- /dev/null +++ b/dependencies/pkg/mod/github.com/ssgreg/journald@v1.0.0/.travis.yml @@ -0,0 +1,25 @@ +language: shell + +sudo: required + +services: + - docker + +env: + global: + - GOPATH=/go + - BUILD_DIR=/go/src/github.com/ssgreg/journald-send + matrix: + - DOCKER_BASE=ssgreg/centos-go + +before_install: + - docker pull ${DOCKER_BASE} + +install: + - docker run -d --privileged -e GOPATH=${GOPATH} -v ${PWD}:${BUILD_DIR} --cidfile=/tmp/cidfile ${DOCKER_BASE} /bin/bash -c "dbus-uuidgen > /etc/machine-id && /usr/lib/systemd/systemd-journald" + +script: + - docker exec `cat /tmp/cidfile` /bin/bash -c "cd ${BUILD_DIR} && go get -u github.com/stretchr/testify && go vet && go test -cpu=2 -race -v && go test -cpu=2 -covermode=atomic -v" + +after_script: + - docker kill `cat /tmp/cidfile` |