sudo: required dist: trusty git: depth: false services: - docker env: global: - REPO=$TRAVIS_REPO_SLUG - VERSION=$TRAVIS_TAG - CODENAME=picodon - GO111MODULE=on script: - echo "Skipping tests... (Tests are executed on SemaphoreCI)" - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make docs; fi before_deploy: - > if ! [ "$BEFORE_DEPLOY_RUN" ]; then export BEFORE_DEPLOY_RUN=1; sudo -E apt-get -yq update; sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*; docker version; make build-image; if [ "$TRAVIS_TAG" ]; then make release-packages; fi; curl -sfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${STRUCTOR_VERSION} curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b "${GOPATH}/bin" ${MIXTUS_VERSION} structor -o traefik -r traefik --dockerfile-url="https://raw.githubusercontent.com/traefik/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/traefik/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/traefik/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug; fi deploy: - provider: releases api_key: ${GITHUB_TOKEN} file: dist/traefik* skip_cleanup: true file_glob: true on: repo: traefik/traefik tags: true - provider: script script: sh script/deploy.sh skip_cleanup: true on: repo: traefik/traefik tags: true - provider: script script: mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="30906710+traefiker@users.noreply.github.com" --git-user-name=traefiker --src-doc-path="./site" --src-owner=containous --src-repo-name=traefik skip_cleanup: true on: repo: traefik/traefik all_branches: true