travis: use makefile rules in travis configuration
Instead of duplicating some of the actions in the travis yaml file and
the Makefile, have travis rules make use of the Makefile.
@@ -16,13 +16,13 @@ matrix:
- env: CEPH_VERSION=nautilus
before_install: |
- docker build --build-arg CEPH_VERSION="${CEPH_VERSION}" -t ceph-golang-ci .
+ make ci-image CEPH_VERSION=${CEPH_VERSION}
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
+ - make test-container CEPH_VERSION=${CEPH_VERSION}
# run style checks
- make check
