1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00
shirou 77e5abb6f0
migrate to circleci2 (#587)
* add circleci 2.0 config, which has golang 1.9 image.
2018-09-16 17:40:02 +09:00

29 lines
601 B
YAML

version: 2
jobs:
test:
docker:
- image: circleci/golang:1.9
working_directory: /home/circleci/go/src/github.com/shirou/gopsutil
environment:
GOPATH: /home/circleci/go
steps:
- run:
command: |
echo -e 'export PATH=$GOPATH/bin:$PATH' >> $BASH_ENV
source /home/circleci/.bashrc
- checkout
- run:
command: make init_tools
- run:
command: dep ensure
- run:
command: go build -v
- run:
command: make build_test
workflows:
version: 2
test:
jobs:
- test