update ci test for travis
This commit is contained in:
@@ -25,22 +25,18 @@ before_script:
|
|||||||
- bash ci/ceph_micro-osd.sh /tmp/micro-ceph
|
- bash ci/ceph_micro-osd.sh /tmp/micro-ceph
|
||||||
- export CEPH_CONF=/tmp/micro-ceph/ceph.conf
|
- export CEPH_CONF=/tmp/micro-ceph/ceph.conf
|
||||||
- ceph status
|
- ceph status
|
||||||
- go get github.com/kr/godep
|
|
||||||
- sudo apt-get install -y libcunit1 libcunit1-doc libcunit1-dev
|
- sudo apt-get install -y libcunit1 libcunit1-doc libcunit1-dev
|
||||||
- sudo apt-get install -y open-iscsi
|
- sudo apt-get install -y open-iscsi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd ${TRAVIS_BUILD_DIR}
|
- cd ${TRAVIS_BUILD_DIR}
|
||||||
- ./autogen.sh
|
|
||||||
- ./configure
|
|
||||||
- make
|
- make
|
||||||
- hack/verify-gofmt.sh
|
- hack/verify-gofmt.sh
|
||||||
- export GOPATH=`pwd`/Godeps/_workspace/:$GOPATH
|
|
||||||
- go test -v ./pkg/...
|
- go test -v ./pkg/...
|
||||||
- dd if=/dev/zero of=/var/tmp/disk.img bs=1024 count=102400
|
- dd if=/dev/zero of=/var/tmp/disk.img bs=1024 count=102400
|
||||||
- mkdir ${HOME}/.gotgt
|
- mkdir ${HOME}/.gotgt
|
||||||
- echo ${TGT_CFG} > ${HOME}/.gotgt/config.json
|
- echo ${TGT_CFG} > ${HOME}/.gotgt/config.json
|
||||||
- ./gotgt daemon --log debug 1>/dev/null 2>&1 &
|
- ./_output/cmd/bin/gotgt daemon --log debug 1>/dev/null 2>&1 &
|
||||||
# libiscsi test
|
# libiscsi test
|
||||||
- mkdir ${HOME}/libiscsi
|
- mkdir ${HOME}/libiscsi
|
||||||
- git clone https://github.com/gostor/libiscsi ${HOME}/libiscsi
|
- git clone https://github.com/gostor/libiscsi ${HOME}/libiscsi
|
||||||
|
|||||||
@@ -12,11 +12,7 @@ CEPH_RELEASE=jewel
|
|||||||
mkdir $WORKDIR
|
mkdir $WORKDIR
|
||||||
pushd $WORKDIR
|
pushd $WORKDIR
|
||||||
|
|
||||||
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
|
git clone -b "v2.0.0" --single-branch --depth 1 https://github.com/ceph/ceph-deploy
|
||||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
|
||||||
|
|
||||||
git clone git://github.com/ceph/ceph-deploy
|
|
||||||
pushd ceph-deploy
|
pushd ceph-deploy
|
||||||
./bootstrap
|
./bootstrap
|
||||||
./ceph-deploy install --release ${CEPH_RELEASE} `hostname`
|
./ceph-deploy install --release ${CEPH_RELEASE} `hostname`
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -o pipefail
|
|||||||
find_files() {
|
find_files() {
|
||||||
find . -not \( \
|
find . -not \( \
|
||||||
\( \
|
\( \
|
||||||
-wholename '*/Godeps/*' \
|
-wholename '*/vendor/*' \
|
||||||
\) -prune \
|
\) -prune \
|
||||||
\) -name '*.go'
|
\) -name '*.go'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user