travis: add ceph nautilus to the test matrix
Add ceph nautilus to the test matrix as well as simplifying the setup
script in the travis yaml file.
@@ -13,16 +13,11 @@ matrix:
include:
- env: CEPH_VERSION=luminous
- env: CEPH_VERSION=mimic
+ - env: CEPH_VERSION=nautilus
before_install: |
- if [[ "${CEPH_VERSION}" == "luminous" ]]; then
- docker build --build-arg CEPH_REPO_URL=https://download.ceph.com/debian-luminous/ -t ceph-golang-ci .
- elif [[ "${CEPH_VERSION}" == "mimic" ]]; then
- docker build --build-arg CEPH_REPO_URL=https://download.ceph.com/debian-mimic/ -t ceph-golang-ci .
- else
- echo "unsupported ceph version"
- exit 1
- fi
+ 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 golang.org/x/lint/golint
