forked from caicloud/cyclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 1.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: go
sudo: required
services:
- docker
go:
- 1.8
- 1.9
go_import_path: github.com/caicloud/cyclone
# env:
# global:
# - DOCKER_COMPOSE_VERSION=1.7.0
# - WORKER_NODE_DOCKER_VERSION=1.12.0
before_install:
# - sudo rm -f /usr/local/bin/docker-compose
# - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
# - chmod +x docker-compose
# - sudo mv docker-compose /usr/local/bin
# install golang deps.
- go get github.com/mattn/goveralls
- go get github.com/go-playground/overalls
# create /logs/unit-test for unit test.
- sudo mkdir /logs
- sudo touch /logs/unit-test
install:
# verify docker.
# - docker version
# - docker-compose version
# - docker images
- go build -o cyclone-server github.com/caicloud/cyclone/cmd/server
- go build -o cyclone-worker github.com/caicloud/cyclone/cmd/worker
script:
- go test -cover $(go list ./... | grep -v '/vendor/' | grep -v '/tests/' | grep -v '/notify')
- travis_wait 15 overalls -project=github.com/caicloud/cyclone -covermode=count -debug -ignore=Godeps,vendor,tests,.git,scripts,node_modules,docs,api,notify
# - ./scripts/e2e-docker.sh
after_success:
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=overalls.coverprofile