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:
parent
34e8564bcc
commit
1e5488ce10
2 changed files with 9 additions and 4 deletions
11
.travis.yml
11
.travis.yml
|
@ -1,10 +1,15 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- "1.10.x"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
install: true
|
install:
|
||||||
- docker-compose -d up
|
- docker-compose up -d
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./runTest.sh
|
- go test -v github.com/paypal/gorealis
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/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.
|
# 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
|
Loading…
Add table
Add a link
Reference in a new issue