Skip to content

Commit

Permalink
Merge pull request #10 from gferraro/master
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro authored Mar 19, 2019
2 parents 58d21fc + f7ffe9b commit 1ccbd49
Show file tree
Hide file tree
Showing 43 changed files with 9,607 additions and 96 deletions.
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

0 comments on commit 1ccbd49

Please sign in to comment.