go-ceph/.travis.yml
Niels de Vos 58b4237aa9 travis: pass CEPH_VERSION as argument to 'docker build'
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-02-12 13:48:21 -05:00

29 lines
669 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: |
docker build --build-arg CEPH_VERSION="${CEPH_VERSION}" -t ceph-golang-ci .
before_script:
- go get github.com/mgechev/revive
# 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 style checks
- make check