ci: build and run tests with luminous/mimic

Signed-off-by: Noah Watkins <nwatkins@redhat.com>
This commit is contained in:
Noah Watkins 2018-08-08 19:35:28 -07:00
parent 96b41ea93e
commit 3dd9a8e5d4
2 changed files with 15 additions and 7 deletions

View File

@ -6,13 +6,20 @@ branches:
except:
- gh-pages
#matrix:
# include:
# - env: CEPH_RELEASE=jewel
# - env: CEPH_RELEASE=kraken
matrix:
include:
- env: CEPH_VERSION=luminous
- env: CEPH_VERSION=mimic
before_install:
- docker build -t ceph-golang-ci .
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
script:
- docker run --rm -it -v ${PWD}:/go/src/github.com/ceph/go-ceph:z ceph-golang-ci

View File

@ -7,8 +7,9 @@ RUN apt-get update && apt-get install -y \
uuid-runtime \
wget
ARG CEPH_REPO_URL=https://download.ceph.com/debian-luminous/
RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
RUN apt-add-repository 'deb https://download.ceph.com/debian-luminous/ xenial main'
RUN apt-add-repository "deb ${CEPH_REPO_URL} xenial main"
RUN add-apt-repository ppa:gophers/archive