github.com/moleculer-go/moleculer@v0.3.3/.travis.yml (about) 1 language: go 2 3 go: 4 # 1.12.x first, so coverage is sent as soon as first build finishes. 5 - 1.12.x 6 - 1.11.x 7 - 1.10.x 8 - master 9 10 os: 11 - linux 12 - osx 13 - windows 14 15 matrix: 16 allow_failures: 17 - os: windows 18 19 before_install: 20 - export STAN_HOST="localhost" 21 - export NATS_HOST="localhost" 22 - go get -v golang.org/x/lint/golint 23 - go get -v golang.org/x/tools/cmd/cover 24 - go get -v github.com/mattn/goveralls 25 - go get -v github.com/modocache/gover 26 - go get -v github.com/nats-io/gnatsd 27 - go get -v github.com/onsi/ginkgo/ginkgo 28 - go get -v github.com/onsi/gomega 29 - echo $TRAVIS_OS_NAME | grep osx && curl -fSsL https://github.com/nats-io/nats-streaming-server/releases/download/v0.11.2/nats-streaming-server-v0.11.2-darwin-amd64.zip -o nats.zip || echo "Skipping OSX" 30 - echo $TRAVIS_OS_NAME | grep linux && curl -fSsL https://github.com/nats-io/nats-streaming-server/releases/download/v0.11.2/nats-streaming-server-v0.11.2-linux-amd64.zip -o nats.zip || echo "Skipping Linux" 31 - echo $TRAVIS_OS_NAME | grep windows && curl -fSsL https://github.com/nats-io/nats-streaming-server/releases/download/v0.11.2/nats-streaming-server-v0.11.2-windows-amd64.zip -o nats.zip || echo "Skipping Windows" 32 - unzip nats.zip && ls 33 34 script: 35 - echo $TRAVIS_OS_NAME | grep windows && nats-streaming-server-v0.11.2-windows-amd64/nats-streaming-server || nohup nats-*/nats-streaming-server -mc 0 -l /dev/null & 36 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && go test ./... -race -coverprofile=coverage.txt -covermode=atomic 2>&1 > /dev/null || echo "Skipping CodeCov coverage file creation" 37 - ginkgo -r --randomizeAllSpecs --failFast --cover --trace 38 39 after_script: 40 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && curl -fSsL https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh?$(date +%s) | sudo bash || echo "Skipping Fossa Binary Download" 41 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && fossa init && fossa analyze || echo "Skipping Fossa Analysis" 42 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && fossa init && fossa test || echo "Skipping Fossa Tests" 43 44 after_success: 45 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && $GOPATH/bin/gover || echo "Skipping gover" 46 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && $GOPATH/bin/goveralls -service=travis-ci || echo "Skipping Goveralls" 47 - go version | grep 1.12 && echo $TRAVIS_OS_NAME | grep linux && bash <(curl -s https://codecov.io/bash) -t e1ecc5e9-6a8a-47cf-b3bb-c046d2fd9f1c || echo "Skipping CodeCov"