Skip to content

Commit

Permalink
Add travisci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatur authored and traefiker committed Sep 3, 2019
1 parent 0ac6b5c commit ef475a3
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 4 deletions.
75 changes: 75 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
language: go

sudo: required
dist: xenial

notifications:
email:
on_success: never
on_failure: change

cache:
directories:
- $GOPATH/pkg/mod

matrix:
fast_finish: true
include:
- go: 1.12.x
env: STABLE=true

env:
global:
- GO111MODULE=on

services:
- docker

script:
- echo "Skipping tests... (Tests are executed on SemaphoreCI)"
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then make -C ./docs docs; fi

install:
- go mod tidy
- git diff --exit-code go.mod
- git diff --exit-code go.sum
- go mod download

before_deploy:
# Install linters
- >
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION}
golangci-lint --version
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
fi
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $STABLE = true
- provider: script
skip_cleanup: true
script: make build push-docker
on:
tags: true
condition: $STABLE = true
- provider: script
skip_cleanup: true
script: make helm-publish
on:
tags: true
condition: $STABLE = true
- provider: pages
edge: false
github_token: ${GITHUB_TOKEN}
target_branch: docs
local_dir: docs/site
skip_cleanup: true
on:
repo: containous/maesh
all_branches: true
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VERSION := latest
DOCKER_IMAGE_NAME := containous/maesh

SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/')
Expand Down
1 change: 1 addition & 0 deletions docs/.markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"MD007": { "indent": 4 },
"MD009": false,
"MD013": false,
"MD024": false,
"MD026": false,
"MD033": false,
"MD034": false,
Expand Down
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ theme:
custom_dir: 'theme'
language: en
include_sidebar: true
favicon: assets/img/maesh-icon.svg
favicon: assets/img/maesh-logo.svg
logo: assets/img/maesh-logo.svg
feature:
tabs: false
Expand Down
5 changes: 3 additions & 2 deletions docs/scripts/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ find "${PATH_TO_SITE}" -type f -not -path "/app/site/theme/*" \
htmlproofer \
--check-html \
--check_external_hash \
--alt_ignore="/traefik.logo.png/" \
--alt_ignore="/maesh-logo.png/" \
--alt_ignore="/maesh-logo.svg/" \
--http_status_ignore="0,500,501,503" \
--url_ignore="/https://groups.google.com/a/traefik.io/forum/#!forum/security/,/localhost:/,/127.0.0.1:/,/fonts.gstatic.com/,/.minikube/,/github.com\/containous\/traefik\/*edit*/,/github.com\/containous\/traefik\/$/,/docs.traefik.io/,/github\.com\/golang\/oauth2\/blob\/36a7019397c4c86cf59eeab3bc0d188bac444277\/.+/" \
--url_ignore="/https://groups.google.com/a/traefik.io/forum/#!forum/security/,/localhost:/,/127.0.0.1:/,/fonts.gstatic.com/,/.minikube/,/github.com\/containous\/maesh\/*edit*/,/github.com\/containous\/maesh\/$/,/docs.maesh.io/" \
'{}' 1>/dev/null
## HTML-proofer options at https://github.com/gjtorikian/html-proofer#configuration

Expand Down

0 comments on commit ef475a3

Please sign in to comment.