sudo: false language: go cache: directories: - $HOME/.glide/cache go: - 1.11.x - 1.12.x matrix: include: - go: 1.12.x env: CROSSDOCK=true sudo: required dist: trusty services: - docker include: - go: 1.12.x env: NO_TEST=yes COVERAGE=yes LINT=yes env: global: - DOCKER_COMPOSE_VERSION=1.8.0 - COMMIT=${TRAVIS_COMMIT::8} # Set higher timeouts for Travis - TEST_TIMEOUT_SCALE=20 # Dump all debug logs on any failure - LOGS_ON_FAILURE=1 # DOCKER_EMAIL - secure: OS9ccMrvJU1W3LgAltdxSn2iqeC/hS/V+xYZ2yfmGqYifzCWWa2R+GmQAfHaxQ6+ut4ISWJX/EYdtnqoUD3SBYRBOeY1fD47LFX0Q0gFnuxfgf3hS6jG5dpiK9nlp+Vj+fxnWkA2QxQQBzLDkdB1B7mBWBMt+MSuevq1QGxT6coy2XypZoAc2ohvTaznHX4PdISFS2Ddku5Zo7jqL80RYW+K1HeYxnjHYG/K7ZSZbhFQxBM5S9FSvwp8ooGiqQ7kIfK4DsOWiIBXx0fHDNHxJtNJfJeAfF9unqkeNx9QZmGcjMWzbmPqBhz231BRXPd+Z0ZyXZVnlLCzOXN2DsE/JffUTLWTxb6rJ6lrwwZ6oZm/YAM3YHRgjotiC92fjZpXEVoBPGtRMcD+P6iwbedKIeaYOj9XQ5OizKaMbJAwU5HfIUWz5iWW66SZf2NWRPwl0BX8qjL2G3yhwJwCzgIpcZ7zxIbVgtZgMcCG5K5i3/HyuGNGI2vqhXCYoFrqJu+T9t59m74ZyKf76e7bfOUQSGZlUMYVGxRtuCdjMACr4jbHD4lIBSnRGE0uat+OSle/+Ke9plP6W5b8XkALgJreOAgBa5Hnf+0ODeQnCaK0gJk6Ax5O9v4B9NEPae5hvdk1rHvG5ke/MXecu18y7wopMhJ/cpSJxRTfADmuCIdIhy4= # DOCKER_USER - secure: D6KY81H0sxRPvXjE2VeYz1c3vkpEUg/UoV0pRIrVlWD7HOKG6a92ZGUbwz8Ex+PRcTPPlEP1rwE/rJ/0uhrueynkX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tntJoqMDQlu61uU2CX4CuXMy6G6I7um8CX63J0xywqDCbgB2XrQvcyiWRc4PCfnKKBtFKZRBU4aZwf/6r4BckU3NKXE8Sji98OEm2nNpyQmyKR7lfvulPTSWfwfTWUg5SAnzTcBshIsH8rFm8qU8f26WR7YoykgO3PKP/nHVItOkYs/i9roi7az9FX4nEPkgYkgwWV8d/4sJt8Uz+ll1WNIKOE= install: - make install_ci script: - test -n "$NO_TEST" || make test_ci - test -z "$COVERAGE" || make cover_ci - test -z "$LINT" || make install_lint lint - make crossdock_logs_ci after_success: - export REPO=tchannelhub/xdock-go - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) - export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH; fi` - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, REPO=$REPO, PR=$PR, BRANCH=$BRANCH, TAG=$TAG" - export DOCKER=$(if [ "$CROSSDOCK" == "true" ]; then echo docker; else echo true; fi) - $DOCKER login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - $DOCKER build -f crossdock/Dockerfile -t $REPO:$COMMIT . - $DOCKER tag $REPO:$COMMIT $REPO:$TAG - $DOCKER tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER - $DOCKER push $REPO