mirror of
https://github.com/ceph/go-ceph
synced 2024-12-30 18:22:07 +00:00
b3deb28b94
Switch use of style checker from golint to revive for both the makefile and travis configuration. Signed-off-by: John Mulligan <jmulligan@redhat.com>
30 lines
739 B
YAML
30 lines
739 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 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
|