Switch from glide to dep & fix CI (#152) (#153)

This commit is contained in:
Brendan LE GLAUNEC
2018-02-02 10:27:59 +01:00
committed by Brendan Le Glaunec
parent 5d2626b639
commit fb9c5afc5f
6 changed files with 311 additions and 124 deletions
+6 -2
View File
@@ -2,6 +2,9 @@ dist: trusty
sudo: required
language: go
env:
- DEP_VERSION="0.4.1"
services:
- docker
@@ -17,13 +20,14 @@ before_install:
- sudo apt-get update
- sudo apt-get install -y docker-ce
- docker version
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
install:
- dep ensure
- docker build -t cameradar .
script:
- curl https://glide.sh/get | sh
- glide install
# Run unit tests
- go test
# Launch a fake camera to check if cameradar is able to access it