Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added travis and tests #10

Merged
merged 21 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@


sudo: required

services:
- docker

language: go

go:
- "1.10.x"
- "1.11.x"

install:
- git clone "https://github.com/TheCacophonyProject/cacophony-api"
- cd cacophony-api
- ./run --isolate --background
- cd ..
- docker cp db-test-seed.sql cacophony-api:/db-seed.sql
before_script:
- ./cacophony-api/wait-for-api || { docker ps; docker logs cacophony-api; exit 1; }
- sudo docker exec cacophony-api sh -c "sudo -i -u postgres psql cacophonytest -f/db-seed.sql"
script:
- go vet ./... && go test ./...
42 changes: 41 additions & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading