go-ceph/.travis.yml
Noah Watkins 3dd9a8e5d4 ci: build and run tests with luminous/mimic
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
2018-08-09 07:34:43 -07:00

26 lines
631 B
YAML

sudo: required
services:
- docker
branches:
except:
- gh-pages
matrix:
include:
- env: CEPH_VERSION=luminous
- env: CEPH_VERSION=mimic
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
script:
- docker run --rm -it -v ${PWD}:/go/src/github.com/ceph/go-ceph:z ceph-golang-ci