kompose/.travis.yml
Charlie Drage cf6df7190c Sync changes from master to gh-pages on each merge request
This adds the functionality for Travis to sync with http://kompose.io in
regards to "syncing" the docs directory in master and the docs within
gh-pages.

Two things are added:
  script/sync-docs/sh
  script/deploy_key.enc

The encrypted key follows the conventions here:
https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
and the functionality of running: `travis encrypt-file encrypt_key`

The script is ran each-time a PR is merged (and only if it's
sucessful!) as per the modifications in `.travis.yml`.

Thus each time we make a change in master, there's no need to open up
another PR for syncing the changes with `gh-pages`.
2017-03-23 10:58:19 -04:00

37 lines
829 B
YAML

# we need trusty because test-cmd depends on jq version >= 1.5
dist : trusty
sudo: required
language: go
# make this also work for forks
go_import_path: github.com/kubernetes-incubator/kompose
matrix:
include:
- go: 1.6
# Only build docs once
env: BUILD_DOCS=yes
- go: 1.7
- go: 1.8
before_install:
- go get github.com/mattn/goveralls
- go get github.com/modocache/gover
- go get github.com/Masterminds/glide
- go get github.com/sgotti/glide-vc
- go get github.com/golang/lint/golint
install:
- true
script:
- make test
after_success:
# gover collects all .coverprofile files and saves it to one file gover.coverprofile
- gover
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
# sync the docs only if everything else was successful
- ./script/sync-docs.sh