2016-11-14 16:41:12 +00:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2018-01-23 16:00:06 +00:00
|
|
|
git:
|
|
|
|
depth: false
|
|
|
|
|
2016-11-14 16:41:12 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-02-19 11:58:06 +00:00
|
|
|
env:
|
2016-04-06 13:28:25 +00:00
|
|
|
global:
|
2019-08-11 10:20:53 +00:00
|
|
|
- REPO=$TRAVIS_REPO_SLUG
|
|
|
|
- VERSION=$TRAVIS_TAG
|
2020-07-15 18:50:03 +00:00
|
|
|
- CODENAME=picodon
|
2019-08-11 10:20:53 +00:00
|
|
|
- GO111MODULE=on
|
2016-11-14 16:41:12 +00:00
|
|
|
|
2017-05-04 07:31:39 +00:00
|
|
|
script:
|
2017-05-12 14:14:45 +00:00
|
|
|
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
|
2019-02-26 13:50:07 +00:00
|
|
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make docs; fi
|
2017-05-12 14:14:45 +00:00
|
|
|
|
2017-04-11 18:47:25 +00:00
|
|
|
before_deploy:
|
2017-05-05 12:17:08 +00:00
|
|
|
- >
|
|
|
|
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
|
|
|
|
export BEFORE_DEPLOY_RUN=1;
|
2017-05-12 14:14:45 +00:00
|
|
|
sudo -E apt-get -yq update;
|
2017-06-27 20:56:19 +00:00
|
|
|
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*;
|
2017-05-12 14:14:45 +00:00
|
|
|
docker version;
|
2019-03-28 10:42:06 +00:00
|
|
|
make build-image;
|
2018-01-23 16:00:06 +00:00
|
|
|
if [ "$TRAVIS_TAG" ]; then
|
2019-03-14 15:22:04 +00:00
|
|
|
make release-packages;
|
2018-01-23 16:00:06 +00:00
|
|
|
fi;
|
2020-09-16 13:46:04 +00:00
|
|
|
curl -sfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${STRUCTOR_VERSION}
|
2020-08-07 14:40:03 +00:00
|
|
|
curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b "${GOPATH}/bin" ${MIXTUS_VERSION}
|
2020-09-16 13:46:04 +00:00
|
|
|
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;
|
|
|
|
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=traefik --src-repo-name=traefik;
|
2017-05-05 12:17:08 +00:00
|
|
|
fi
|
2019-03-14 15:22:04 +00:00
|
|
|
|
2017-02-02 09:58:42 +00:00
|
|
|
deploy:
|
|
|
|
- provider: releases
|
|
|
|
api_key: ${GITHUB_TOKEN}
|
|
|
|
file: dist/traefik*
|
|
|
|
skip_cleanup: true
|
|
|
|
file_glob: true
|
|
|
|
on:
|
2020-09-16 13:46:04 +00:00
|
|
|
repo: traefik/traefik
|
2017-02-02 09:58:42 +00:00
|
|
|
tags: true
|
|
|
|
- provider: script
|
2017-02-02 14:25:26 +00:00
|
|
|
script: sh script/deploy.sh
|
2017-02-02 12:59:28 +00:00
|
|
|
skip_cleanup: true
|
2017-02-02 09:58:42 +00:00
|
|
|
on:
|
2020-09-16 13:46:04 +00:00
|
|
|
repo: traefik/traefik
|
2017-02-02 09:58:42 +00:00
|
|
|
tags: true
|
2020-09-23 08:20:04 +00:00
|
|
|
- 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
|
2018-01-23 13:18:03 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2020-09-16 13:46:04 +00:00
|
|
|
repo: traefik/traefik
|
2020-09-23 08:20:04 +00:00
|
|
|
all_branches: true
|