blob: 79114b825c44d3f4cecf0b59400cfec95be8ef03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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`
|