Semaphore/circle.yml

29 lines
796 B
YAML
Raw Normal View History

2016-05-21 01:13:16 +02:00
machine:
environment:
CPATH: "/home/ubuntu/.go_workspace/src/github.com/ansible-semaphore/semaphore/"
2016-01-05 00:32:53 +01:00
dependencies:
pre:
2016-12-21 10:36:54 +01:00
- sudo rm -rf /usr/local/go
2017-02-22 12:52:50 +01:00
- sudo curl -L https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz > /tmp/go.tar.gz
2016-12-21 10:36:54 +01:00
- sudo tar -C /usr/local -xzf /tmp/go.tar.gz
2016-05-21 01:47:09 +02:00
- git submodule update --init --recursive
2016-12-21 10:36:54 +01:00
- npm i -g less pug-cli
2016-05-21 01:47:09 +02:00
- npm i async
2016-01-05 00:32:53 +01:00
- go get github.com/jteeuwen/go-bindata/...
2016-04-30 09:52:33 +02:00
- go get github.com/mitchellh/gox
2016-01-05 00:32:53 +01:00
override:
2016-05-21 01:13:16 +02:00
- mkdir -p $CPATH
- rsync -azC --delete ./ $CPATH
2016-05-21 01:47:09 +02:00
- cd $CPATH && ./make.sh ci_test
- cd $CPATH && go get ./...
2016-01-05 00:32:53 +01:00
test:
pre:
2016-05-24 11:58:34 +02:00
- cd $CPATH && go run cli/main.go --migrate
2016-01-05 00:32:53 +01:00
override:
2016-05-21 01:13:16 +02:00
- cd $CPATH && go vet ./...
- cd $CPATH && go test ./...
2016-05-21 01:47:09 +02:00
- cd $CPATH && ./make.sh