mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
29 lines
796 B
YAML
29 lines
796 B
YAML
machine:
|
|
environment:
|
|
CPATH: "/home/ubuntu/.go_workspace/src/github.com/ansible-semaphore/semaphore/"
|
|
|
|
dependencies:
|
|
pre:
|
|
- sudo rm -rf /usr/local/go
|
|
- sudo curl -L https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz > /tmp/go.tar.gz
|
|
- sudo tar -C /usr/local -xzf /tmp/go.tar.gz
|
|
- git submodule update --init --recursive
|
|
- npm i -g less pug-cli
|
|
- npm i async
|
|
- go get github.com/jteeuwen/go-bindata/...
|
|
- go get github.com/mitchellh/gox
|
|
|
|
override:
|
|
- mkdir -p $CPATH
|
|
- rsync -azC --delete ./ $CPATH
|
|
- cd $CPATH && ./make.sh ci_test
|
|
- cd $CPATH && go get ./...
|
|
|
|
test:
|
|
pre:
|
|
- cd $CPATH && go run cli/main.go --migrate
|
|
|
|
override:
|
|
- cd $CPATH && go vet ./...
|
|
- cd $CPATH && go test ./...
|
|
- cd $CPATH && ./make.sh |