-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from gaocegege/add-test-cases
add test cases
- Loading branch information
Showing
18 changed files
with
389 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,45 @@ | ||
language: go | ||
|
||
# sudo: required | ||
|
||
# services: | ||
# - docker | ||
|
||
go: | ||
- 1.6 | ||
- 1.7 | ||
|
||
go_import_path: github.com/caicloud/cyclone | ||
|
||
before_install: | ||
# 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/tools/godep | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/go-playground/overalls | ||
|
||
install: | ||
# verify docker. | ||
# - docker version | ||
# - docker-compose version | ||
# - docker images | ||
- godep go build . | ||
- cd ./worker | ||
- godep go build ./cyclone-worker.go | ||
- cd - > /dev/null | ||
|
||
script: | ||
- ./tests/run-unit-test.sh | ||
- overalls -project=github.com/caicloud/cyclone -covermode=count -debug -ignore=vendor,tests,.git,scripts,node_modules,docs | ||
- overalls -project=github.com/caicloud/cyclone -covermode=count -debug -ignore=Godeps,vendor,tests,.git,scripts,node_modules,docs,api | ||
# - ./tests/run-e2e.sh | ||
|
||
after_success: | ||
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=overalls.coverprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.