2016-11-14 17:41:12 +01:00
sudo : required
dist : trusty
2018-01-23 17:00:06 +01:00
git :
depth : false
2016-11-14 17:41:12 +01:00
services :
- docker
2016-02-19 12:58:06 +01:00
env :
2016-04-06 15:28:25 +02:00
global :
2016-04-06 17:31:43 +02:00
- REPO : $TRAVIS_REPO_SLUG
2016-05-27 14:12:29 +02:00
- VERSION : $TRAVIS_TAG
2018-07-09 16:54:04 +02:00
- CODENAME : maroilles
2017-05-04 09:31:39 +02:00
- N_MAKE_JOBS : 2
2016-11-14 17:41:12 +01:00
2017-05-04 09:31:39 +02:00
script :
2017-05-12 16:14:45 +02:00
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
2018-07-12 18:26:03 +02:00
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make docs-verify; fi
2017-05-12 16:14:45 +02:00
2017-04-11 20:47:25 +02:00
before_deploy :
2017-05-05 14:17:08 +02:00
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
2017-05-12 16:14:45 +02:00
sudo -E apt-get -yq update;
2017-06-27 22:56:19 +02:00
sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-ce=${DOCKER_VERSION}*;
2017-05-12 16:14:45 +02:00
docker version;
2018-01-29 16:08:03 +01:00
make image;
2018-01-23 17:00:06 +01:00
if [ "$TRAVIS_TAG" ]; then
make -j${N_MAKE_JOBS} crossbinary-parallel;
2018-01-24 16:10:04 +01:00
tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .;
2018-01-23 17:00:06 +01:00
fi;
2018-01-23 14:18:03 +01:00
curl -sI https://github.com/containous/structor/releases/latest | grep -Fi Location | tr -d '\r' | sed "s/tag/download/g" | awk -F " " '{ print $2 "/structor_linux-amd64"}' | wget --output-document=$GOPATH/bin/structor -i -;
chmod +x $GOPATH/bin/structor;
2018-03-07 21:50:04 +01:00
structor -o containous -r traefik --dockerfile-url="https://raw.githubusercontent.com/containous/traefik/master/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/containous/structor/master/requirements-override.txt" --exp-branch=master --debug;
2017-05-05 14:17:08 +02:00
fi
2017-02-02 10:58:42 +01:00
deploy :
- provider : releases
api_key : ${GITHUB_TOKEN}
file : dist/traefik*
skip_cleanup : true
file_glob : true
on :
repo : containous/traefik
tags : true
- provider : script
2017-02-02 15:25:26 +01:00
script : sh script/deploy.sh
2017-02-02 13:59:28 +01:00
skip_cleanup : true
2017-02-02 10:58:42 +01:00
on :
repo : containous/traefik
tags : true
- provider : script
2017-02-02 15:25:26 +01:00
script : sh script/deploy-docker.sh
2017-02-02 13:59:28 +01:00
skip_cleanup : true
2017-02-02 10:58:42 +01:00
on :
repo : containous/traefik
2018-01-23 14:18:03 +01:00
- provider : pages
2018-03-02 14:20:04 +01:00
edge : false
2018-01-23 14:18:03 +01:00
github_token : ${GITHUB_TOKEN}
local_dir : site
skip_cleanup : true
on :
repo : containous/traefik
2018-01-23 14:48:04 +01:00
all_branches : true