Fix travis script (#1067)
* Fix travis script Signed-off-by: Emile Vauge <emile@vauge.com> * how do i pronounce this damn project Signed-off-by: Emile Vauge <emile@vauge.com> * Remove unstable Docker 1.13 tests Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
02473328e7
commit
c1182377db
4 changed files with 57 additions and 49 deletions
83
.travis.yml
83
.travis.yml
|
@ -11,15 +11,15 @@ env:
|
||||||
- VERSION: $TRAVIS_TAG
|
- VERSION: $TRAVIS_TAG
|
||||||
- CODENAME: camembert
|
- CODENAME: camembert
|
||||||
|
|
||||||
#addons:
|
matrix:
|
||||||
# apt:
|
fast_finish: true
|
||||||
# packages:
|
include:
|
||||||
# - docker-engine=$DOCKER_VERSION.*
|
- env: DOCKER_VERSION=1.10.3
|
||||||
|
- env: DOCKER_VERSION=1.12.6
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo -E apt-get -yq update
|
- sudo -E apt-get -yq update
|
||||||
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-engine=${DOCKER_VERSION}*
|
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install docker-engine=${DOCKER_VERSION}*
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- docker version
|
- docker version
|
||||||
- pip install --user -r requirements.txt
|
- pip install --user -r requirements.txt
|
||||||
|
@ -27,44 +27,39 @@ before_script:
|
||||||
- make validate
|
- make validate
|
||||||
- make binary
|
- make binary
|
||||||
script:
|
script:
|
||||||
- make test-unit
|
- travis_retry make test-unit
|
||||||
- make test-integration
|
- travis_retry make test-integration
|
||||||
after_failure:
|
after_failure:
|
||||||
- docker ps
|
- docker ps
|
||||||
|
after_success:
|
||||||
matrix:
|
- make crossbinary
|
||||||
fast_finish: true
|
- make image
|
||||||
include:
|
before_deploy:
|
||||||
- env: DOCKER_VERSION=1.10.3
|
- mkdocs build --clean
|
||||||
- env: DOCKER_VERSION=1.13.0
|
- tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .
|
||||||
- env: DOCKER_VERSION=1.12.6
|
deploy:
|
||||||
after_success:
|
- provider: pages
|
||||||
- make crossbinary
|
edge: true
|
||||||
- make image
|
github_token: ${GITHUB_TOKEN}
|
||||||
before_deploy:
|
local_dir: site
|
||||||
- mkdocs build --clean
|
skip_cleanup: true
|
||||||
- tar cfz dist/traefik-${VERSION}.src.tar.gz --exclude-vcs --exclude dist .
|
on:
|
||||||
deploy:
|
repo: containous/traefik
|
||||||
- provider: pages
|
tags: true
|
||||||
edge: true
|
- provider: releases
|
||||||
github_token: ${GITHUB_TOKEN}
|
api_key: ${GITHUB_TOKEN}
|
||||||
local_dir: site
|
file: dist/traefik*
|
||||||
on:
|
skip_cleanup: true
|
||||||
repo: containous/traefik
|
file_glob: true
|
||||||
tags: true
|
on:
|
||||||
- provider: releases
|
repo: containous/traefik
|
||||||
api_key: ${GITHUB_TOKEN}
|
tags: true
|
||||||
file: dist/traefik_*
|
- provider: script
|
||||||
file_glob: true
|
script: script/deploy.sh
|
||||||
on:
|
on:
|
||||||
repo: containous/traefik
|
repo: containous/traefik
|
||||||
tags: true
|
tags: true
|
||||||
- provider: scripts
|
- provider: script
|
||||||
script: script/deploy.sh
|
script: script/deploy-docker.sh
|
||||||
on:
|
on:
|
||||||
repo: containous/traefik
|
repo: containous/traefik
|
||||||
tags: true
|
|
||||||
- provider: scripts
|
|
||||||
script: script/deploy-docker.sh
|
|
||||||
on:
|
|
||||||
repo: containous/traefik
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
[![Twitter](https://img.shields.io/twitter/follow/traefikproxy.svg?style=social)](https://twitter.com/intent/follow?screen_name=traefikproxy)
|
[![Twitter](https://img.shields.io/twitter/follow/traefikproxy.svg?style=social)](https://twitter.com/intent/follow?screen_name=traefikproxy)
|
||||||
|
|
||||||
|
|
||||||
Træfɪk is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease.
|
Træfɪk (pronounced like [traffic](https://speak-ipa.bearbin.net/speak.cgi?speak=%CB%88tr%C3%A6f%C9%AAk)) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease.
|
||||||
It supports several backends ([Docker](https://www.docker.com/), [Swarm](https://docs.docker.com/swarm), [Kubernetes](http://kubernetes.io), [Marathon](https://mesosphere.github.io/marathon/), [Mesos](https://github.com/apache/mesos), [Consul](https://www.consul.io/), [Etcd](https://coreos.com/etcd/), [Zookeeper](https://zookeeper.apache.org), [BoltDB](https://github.com/boltdb/bolt), [Eureka](https://github.com/Netflix/eureka), Rest API, file...) to manage its configuration automatically and dynamically.
|
It supports several backends ([Docker](https://www.docker.com/), [Swarm](https://docs.docker.com/swarm), [Kubernetes](http://kubernetes.io), [Marathon](https://mesosphere.github.io/marathon/), [Mesos](https://github.com/apache/mesos), [Consul](https://www.consul.io/), [Etcd](https://coreos.com/etcd/), [Zookeeper](https://zookeeper.apache.org), [BoltDB](https://github.com/boltdb/bolt), [Eureka](https://github.com/Netflix/eureka), Rest API, file...) to manage its configuration automatically and dynamically.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
|
@ -1,13 +1,21 @@
|
||||||
FROM golang:1.7
|
FROM golang:1.7
|
||||||
|
|
||||||
RUN go get github.com/Masterminds/glide \
|
RUN go get github.com/jteeuwen/go-bindata/... \
|
||||||
&& go get github.com/jteeuwen/go-bindata/... \
|
|
||||||
&& go get github.com/golang/lint/golint \
|
&& go get github.com/golang/lint/golint \
|
||||||
&& go get github.com/kisielk/errcheck \
|
&& go get github.com/kisielk/errcheck \
|
||||||
&& go get github.com/client9/misspell/cmd/misspell
|
&& go get github.com/client9/misspell/cmd/misspell
|
||||||
|
|
||||||
# Which docker version to test on
|
# Which docker version to test on
|
||||||
ARG DOCKER_VERSION=1.10.1
|
ARG DOCKER_VERSION=v0.10.3
|
||||||
|
|
||||||
|
|
||||||
|
# Which glide version to test on
|
||||||
|
ARG GLIDE_VERSION=v0.12.3
|
||||||
|
|
||||||
|
# Download glide
|
||||||
|
RUN mkdir -p /usr/local/bin \
|
||||||
|
&& curl -SL https://github.com/Masterminds/glide/releases/download/${GLIDE_VERSION}/glide-${GLIDE_VERSION}-linux-amd64.tar.gz \
|
||||||
|
| tar -xzC /usr/local/bin --transform 's#^.+/##x'
|
||||||
|
|
||||||
# Download docker
|
# Download docker
|
||||||
RUN mkdir -p /usr/local/bin \
|
RUN mkdir -p /usr/local/bin \
|
||||||
|
|
|
@ -3,12 +3,17 @@ FROM node:6.9.1
|
||||||
ENV WEBUI_DIR /src/webui
|
ENV WEBUI_DIR /src/webui
|
||||||
RUN mkdir -p $WEBUI_DIR
|
RUN mkdir -p $WEBUI_DIR
|
||||||
|
|
||||||
|
RUN apt-get -yq update \
|
||||||
|
&& apt-get -yq --no-install-suggests --no-install-recommends --force-yes install apt-transport-https \
|
||||||
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||||
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||||
|
&& apt-get -yq update && apt-get -yq --no-install-suggests --no-install-recommends --force-yes install yarn
|
||||||
|
|
||||||
COPY package.json $WEBUI_DIR/
|
COPY package.json $WEBUI_DIR/
|
||||||
COPY yarn.lock $WEBUI_DIR/
|
COPY yarn.lock $WEBUI_DIR/
|
||||||
|
|
||||||
WORKDIR $WEBUI_DIR
|
WORKDIR $WEBUI_DIR
|
||||||
RUN npm set progress=false
|
RUN npm set progress=false
|
||||||
RUN npm install --quiet --global yarn@0.16.1
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
COPY . $WEBUI_DIR/
|
COPY . $WEBUI_DIR/
|
||||||
|
|
Loading…
Reference in a new issue