2
0
mirror of synced 2025-02-23 22:28:11 +00:00
torrent/.circleci/config.yml
Matt Joiner 054ff25f7c Add CircleCI 2.0 turd
Adds tests for https://github.com/anacrolix/utp/issues/24, and mobile on the master branch. The UDP tracker test uses udp4 because of some bad behaviour on CircleCI.
2017-08-27 02:10:17 +10:00

20 lines
694 B
YAML

version: 2
jobs:
build:
docker:
- image: circleci/golang:latest
environment:
PROJECT_GO_PACKAGE: github.com/anacrolix/torrent
working_directory: /go/src/$PROJECT_GO_PACKAGE
steps:
- run: echo $PROJECT_GO_PACKAGE
- checkout
- run: sudo apt install fuse
- run: go get -t -d -v -race $PROJECT_GO_PACKAGE/...
- run: go test -v -race $PROJECT_GO_PACKAGE/...
- run: CGO_ENABLED=0 go get -t -d -v $PROJECT_GO_PACKAGE/...
- run: CGO_ENABLED=0 go test -v $PROJECT_GO_PACKAGE/...
- run: go get golang.org/x/mobile/cmd/gomobile
- run: gomobile init
- run: gomobile build -target=android $PROJECT_GO_PACKAGE