2018-11-11 21:59:13 +01:00
|
|
|
dist: xenial
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2019-03-15 22:37:10 +01:00
|
|
|
env: # for allow_failures: https://docs.travis-ci.com/user/customizing-the-build/
|
2018-11-11 21:59:13 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
|
|
|
|
- language: go
|
|
|
|
name: "Build in Docker (docs/installation.rst)"
|
|
|
|
script:
|
|
|
|
- sudo docker build -t zrepl_build -f build.Dockerfile .
|
|
|
|
- |
|
|
|
|
sudo docker run -it --rm \
|
|
|
|
-v "${PWD}:/go/src/github.com/zrepl/zrepl" \
|
|
|
|
--user "$(id -u):$(id -g)" \
|
|
|
|
zrepl_build make vendordeps release
|
|
|
|
|
2019-03-16 15:49:24 +01:00
|
|
|
- &zrepl_build_template
|
|
|
|
language: go
|
2018-11-11 21:59:13 +01:00
|
|
|
go_import_path: github.com/zrepl/zrepl
|
|
|
|
before_install:
|
|
|
|
- wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
|
|
|
|
- echo "6003de742ea3fcf703cfec1cd4a3380fd143081a2eb0e559065563496af27807 protoc-3.6.1-linux-x86_64.zip" | sha256sum -c
|
|
|
|
- sudo unzip -d /usr protoc-3.6.1-linux-x86_64.zip
|
2018-12-01 14:09:32 +01:00
|
|
|
- ./lazy.sh godep
|
2018-11-11 21:59:13 +01:00
|
|
|
- make vendordeps
|
|
|
|
script:
|
|
|
|
- make
|
|
|
|
- make vet
|
|
|
|
- make test
|
2019-03-27 13:04:38 +01:00
|
|
|
- make lint
|
2018-11-11 21:59:13 +01:00
|
|
|
- make artifacts/zrepl-freebsd-amd64
|
|
|
|
- make artifacts/zrepl-linux-amd64
|
|
|
|
- make artifacts/zrepl-darwin-amd64
|
2019-03-16 15:49:24 +01:00
|
|
|
go:
|
|
|
|
- "1.11"
|
2018-11-11 21:59:13 +01:00
|
|
|
|
2019-03-16 15:49:24 +01:00
|
|
|
- <<: *zrepl_build_template
|
|
|
|
go:
|
|
|
|
- "1.12"
|
|
|
|
|
|
|
|
- <<: *zrepl_build_template
|
2018-11-11 21:59:13 +01:00
|
|
|
go:
|
2018-12-11 22:01:50 +01:00
|
|
|
- "master"
|
2018-11-11 21:59:13 +01:00
|
|
|
|
2019-03-16 15:49:24 +01:00
|
|
|
- &zrepl_docs_template
|
|
|
|
language: python
|
2018-11-11 21:59:13 +01:00
|
|
|
python:
|
|
|
|
- "3.4"
|
|
|
|
install:
|
|
|
|
- sudo apt-get install libgirepository1.0-dev
|
|
|
|
- pip install -r docs/requirements.txt
|
|
|
|
script:
|
|
|
|
- make docs
|
2019-03-16 15:49:24 +01:00
|
|
|
- <<: *zrepl_docs_template
|
2018-11-11 21:59:13 +01:00
|
|
|
python:
|
|
|
|
- "3.5"
|
2019-03-16 15:49:24 +01:00
|
|
|
- <<: *zrepl_docs_template
|
2018-11-11 21:59:13 +01:00
|
|
|
python:
|
|
|
|
- "3.6"
|
2019-03-16 15:49:24 +01:00
|
|
|
- <<: *zrepl_docs_template
|
2018-11-11 21:59:13 +01:00
|
|
|
python:
|
|
|
|
- "3.7"
|
2019-03-16 15:49:24 +01:00
|
|
|
|
2018-11-11 21:59:13 +01:00
|
|
|
|
2019-03-15 22:37:10 +01:00
|
|
|
allow_failures:
|
2019-03-16 15:49:24 +01:00
|
|
|
- <<: *zrepl_build_template
|
|
|
|
go:
|
|
|
|
- "master"
|