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.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-03-11 13:51:05 -04:00 committed by Niels de Vos
parent 68cdcc3b4e
commit 86945c70db
1 changed files with 2 additions and 2 deletions

View File

@ -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