Simplyfing travis CI run since Linux has better support for bridge mode. Renamving runTests.sh to runTestsMac.sh since no container is needed for Linux.

This commit is contained in:
Renan DelValle 2018-08-13 16:41:48 -07:00
parent 34e8564bcc
commit 1e5488ce10
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 9 additions and 4 deletions

View file

@ -1,10 +1,15 @@
sudo: required
language: go
go:
- "1.10.x"
services:
- docker
install: true
- docker-compose -d up
install:
- docker-compose up -d
script:
- ./runTest.sh
- go test -v github.com/paypal/gorealis

View file

@ -1,4 +1,4 @@
#!/bin/bash
# Since we run our docker compose setup in bridge mode to be able to run on MacOS, we have to launch a Docker container within the bridge network in order to avoid any routing issues.
docker run -t -v $(pwd):/go/src/github.com/paypal/gorealis --network gorealis_aurora_cluster golang:1.10.3-stretch go test github.com/paypal/gorealis
docker run -t -v $(pwd):/go/src/github.com/paypal/gorealis --network gorealis_aurora_cluster golang:1.10.3-stretch go test -v github.com/paypal/gorealis