github.com/shyftnetwork/go-empyrean@v1.8.3-0.20191127201940-fbfca9338f04/.travis.yml (about) 1 language: go 2 go_import_path: github.com/ShyftNetwork/go-empyrean 3 4 matrix: 5 allow_failures: 6 - os: osx 7 include: 8 - os: linux 9 dist: trusty 10 sudo: required 11 go: 1.10.x 12 13 - os: linux 14 dist: trusty 15 sudo: required 16 go: 1.11.x 17 git: 18 submodules: true 19 20 21 - os: osx 22 sudo: required 23 go: 1.11.x 24 25 - os: linux 26 dist: trusty 27 sudo: required 28 go: 1.11.x 29 env: 30 - LINT 31 git: 32 submodules: false 33 before_install: ignore 34 before_script: ignore 35 script: go run build/ci.go lint 36 37 - os: linux 38 dist: trusty 39 sudo: required 40 go: 1.11.x 41 before_install: ignore 42 before_script: ignore 43 env: 44 - DISABLEPG="disablepg" 45 git: 46 submodules: false 47 script: go run build/ci.go install 48 49 cache: 50 timeout: 259200 # 72 hours 51 directories: 52 - $TRAVIS_BUILD_DIR/.git/modules 53 54 before_install: 55 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi 56 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo /etc/init.d/postgresql stop ; fi 57 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo /etc/init.d/postgresql start 9.6 ; fi 58 59 install: 60 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install postgresql@9.6 ; fi 61 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start postgresql ; fi 62 - go get -t ./... 63 64 before_script: 65 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then createuser -s postgres ; fi 66 - psql -c 'create database shyftdbtest;' -U postgres 67 - psql -c 'create database shyftdbtest_2;' -U postgres 68 69 script: 70 - go run build/ci.go install 71 - go run build/ci.go test -coverage $TEST_PACKAGES