2017-01-12 17:52:03 +00:00
|
|
|
sudo: required
|
2018-07-07 17:34:56 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2014-08-31 01:57:17 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
|
2018-08-09 02:35:28 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: CEPH_VERSION=luminous
|
|
|
|
- env: CEPH_VERSION=mimic
|
2017-01-12 17:52:03 +00:00
|
|
|
|
2018-08-09 02:35:28 +00:00
|
|
|
before_install: |
|
|
|
|
if [[ "${CEPH_VERSION}" == "luminous" ]]; then
|
|
|
|
docker build --build-arg CEPH_REPO_URL=https://download.ceph.com/debian-luminous/ -t ceph-golang-ci .
|
|
|
|
elif [[ "${CEPH_VERSION}" == "mimic" ]]; then
|
|
|
|
docker build --build-arg CEPH_REPO_URL=https://download.ceph.com/debian-mimic/ -t ceph-golang-ci .
|
|
|
|
else
|
|
|
|
echo "unsupported ceph version"
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-08-31 01:57:17 +00:00
|
|
|
|
2015-01-13 05:01:25 +00:00
|
|
|
script:
|
2018-07-07 17:34:56 +00:00
|
|
|
- docker run --rm -it -v ${PWD}:/go/src/github.com/ceph/go-ceph:z ceph-golang-ci
|