2017-01-12 17:52:03 +00:00
|
|
|
sudo: required
|
2018-12-10 22:17:39 +00:00
|
|
|
language: go
|
|
|
|
dist: trusty
|
|
|
|
|
2018-07-07 17:34:56 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2014-08-31 01:57:17 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
|
2018-08-09 02:35:28 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: CEPH_VERSION=luminous
|
|
|
|
- env: CEPH_VERSION=mimic
|
2019-10-31 13:48:45 +00:00
|
|
|
- env: CEPH_VERSION=nautilus
|
2017-01-12 17:52:03 +00:00
|
|
|
|
2018-08-09 02:35:28 +00:00
|
|
|
before_install: |
|
2019-10-31 13:48:45 +00:00
|
|
|
CEPH_REPO_URL="https://download.ceph.com/debian-${CEPH_VERSION}/"
|
|
|
|
docker build --build-arg CEPH_REPO_URL="${CEPH_REPO_URL}" -t ceph-golang-ci .
|
2014-08-31 01:57:17 +00:00
|
|
|
|
2018-12-10 22:17:39 +00:00
|
|
|
before_script:
|
2019-12-12 02:04:19 +00:00
|
|
|
- go get github.com/mgechev/revive
|
2018-12-10 22:17:39 +00:00
|
|
|
|
2018-10-10 22:06:47 +00:00
|
|
|
# cephfs (fuse) requires: --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined
|
2015-01-13 05:01:25 +00:00
|
|
|
script:
|
2018-10-10 22:06:47 +00:00
|
|
|
- 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
|
2019-12-12 02:04:19 +00:00
|
|
|
# run style checks
|
2018-12-10 22:17:39 +00:00
|
|
|
- make check
|