update ci test for travis

This commit is contained in:
Lei Xue
2018-11-18 17:26:27 +08:00
parent 8af6a91545
commit 6fe661849a
3 changed files with 3 additions and 11 deletions

View File

@@ -25,22 +25,18 @@ before_script:
- bash ci/ceph_micro-osd.sh /tmp/micro-ceph
- export CEPH_CONF=/tmp/micro-ceph/ceph.conf
- ceph status
- go get github.com/kr/godep
- sudo apt-get install -y libcunit1 libcunit1-doc libcunit1-dev
- sudo apt-get install -y open-iscsi
script:
- cd ${TRAVIS_BUILD_DIR}
- ./autogen.sh
- ./configure
- make
- hack/verify-gofmt.sh
- export GOPATH=`pwd`/Godeps/_workspace/:$GOPATH
- go test -v ./pkg/...
- dd if=/dev/zero of=/var/tmp/disk.img bs=1024 count=102400
- mkdir ${HOME}/.gotgt
- 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
- mkdir ${HOME}/libiscsi
- git clone https://github.com/gostor/libiscsi ${HOME}/libiscsi