go-ceph/.travis.yml
John Mulligan 93d8176a10 travis: add ceph nautilus to the test matrix
Add ceph nautilus to the test matrix as well as simplifying the setup
script in the travis yaml file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-11-04 13:15:30 -05:00

31 lines
791 B
YAML

sudo: required
language: go
dist: trusty
services:
- docker
branches:
except:
- gh-pages
matrix:
include:
- env: CEPH_VERSION=luminous
- env: CEPH_VERSION=mimic
- env: CEPH_VERSION=nautilus
before_install: |
CEPH_REPO_URL="https://download.ceph.com/debian-${CEPH_VERSION}/"
docker build --build-arg CEPH_REPO_URL="${CEPH_REPO_URL}" -t ceph-golang-ci .
before_script:
- go get golang.org/x/lint/golint
# cephfs (fuse) requires: --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined
script:
- docker run --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined --rm -it -v ${PWD}:/go/src/github.com/ceph/go-ceph:z ceph-golang-ci
# run golint and other style checks
- go get golang.org/x/lint/golint
- make check