| # A Travis CI configuration file. |
| |
| language: go |
| |
| matrix: |
| include: |
| - os: linux |
| sudo: required |
| group: deprecated-2017Q3 |
| go: 1.8 |
| services: docker |
| |
| git: |
| depth: 3 |
| |
| before_install: |
| - cd $TRAVIS_BUILD_DIR |
| - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) |
| - test -z "$(gofmt -s -l $(echo $GO_FILES))" |
| - pip install --upgrade pip setuptools |
| - ./tools/travis/setup.sh |
| |
| install: |
| - export DEPLOY_BUILD_READY=false |
| - go get -u github.com/golang/lint/golint |
| - go get -u github.com/stretchr/testify |
| |
| script: |
| - ./tools/travis/build.sh |
| - export PATH=$PATH:$TRAVIS_BUILD_DIR; |
| - make test |
| - if [ "$TRAVIS_OS_NAME" == "linux" ] ; then |
| ./tools/travis/test_openwhisk.sh; |
| fi |