mirror of https://github.com/ceph/go-ceph
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:
parent
68cdcc3b4e
commit
86945c70db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue