2016-11-14 16:41:12 +00:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2016-02-19 11:58:06 +00:00
|
|
|
env:
|
2016-04-06 13:28:25 +00:00
|
|
|
global:
|
2016-04-06 15:31:43 +00:00
|
|
|
- REPO: $TRAVIS_REPO_SLUG
|
2016-05-27 12:12:29 +00:00
|
|
|
- VERSION: $TRAVIS_TAG
|
2017-05-04 16:17:13 +00:00
|
|
|
- CODENAME: raclette
|
2017-05-04 07:31:39 +00:00
|
|
|
- N_MAKE_JOBS: 2
|
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)"
|
|
|
|
|
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;
|
|
|
|
pip install --user -r requirements.txt;
|
|
|
|
make -j${N_MAKE_JOBS} crossbinary-parallel;
|
2017-05-05 12:17:08 +00:00
|
|
|
make image;
|
|
|
|
mkdocs build --clean;
|
|
|
|
tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .;
|
|
|
|
fi
|
2017-02-02 09:58:42 +00:00
|
|
|
deploy:
|
|
|
|
- provider: pages
|
|
|
|
edge: true
|
|
|
|
github_token: ${GITHUB_TOKEN}
|
|
|
|
local_dir: site
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
repo: containous/traefik
|
|
|
|
tags: true
|
|
|
|
- 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 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:
|
|
|
|
repo: containous/traefik
|
|
|
|
tags: true
|
|
|
|
- provider: script
|
2017-02-02 14:25:26 +00:00
|
|
|
script: sh script/deploy-docker.sh
|
2017-02-02 12:59:28 +00:00
|
|
|
skip_cleanup: true
|
2017-02-02 09:58:42 +00:00
|
|
|
on:
|
|
|
|
repo: containous/traefik
|