Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | language: go |
| 2 | |
| 3 | go: |
| 4 | - 1.6.x |
| 5 | - 1.7.x |
| 6 | - 1.8.x |
| 7 | - 1.9.x |
| 8 | - 1.10.x |
| 9 | |
| 10 | matrix: |
| 11 | include: |
| 12 | - go: 1.10.x |
| 13 | env: RUN386=1 |
| 14 | |
| 15 | go_import_path: google.golang.org/grpc |
| 16 | |
| 17 | before_install: |
| 18 | - if [[ -n "$RUN386" ]]; then export GOARCH=386; fi |
| 19 | - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi |
| 20 | |
| 21 | script: |
| 22 | - if [[ "$TRAVIS_GO_VERSION" = 1.10* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi |
| 23 | - make test || exit 1 |
| 24 | - if [[ "$GOARCH" != "386" ]]; then make testrace; fi |