mirror of https://github.com/ceph/go-ceph
ci: build and run tests with luminous/mimic
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
This commit is contained in:
parent
96b41ea93e
commit
3dd9a8e5d4
19
.travis.yml
19
.travis.yml
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue