1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10-stretch
working_directory: /go/src/github.com/DCSO/slinkwatch
steps:
- checkout
- run:
name: Add stretch-backports
command: 'echo "deb http://ftp.debian.org/debian stretch-backports main" | sudo tee -a /etc/apt/sources.list.d/backports.list'
- run:
name: Install apt dependencies
command: 'sudo apt-get update && sudo apt-get -t stretch-backports install libdaemon-dev libsystemd-dev -y'
- run: dep ensure
- run: go test -v ./...
|