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

View File

@@ -12,11 +12,7 @@ CEPH_RELEASE=jewel
mkdir $WORKDIR
pushd $WORKDIR
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
git clone git://github.com/ceph/ceph-deploy
git clone -b "v2.0.0" --single-branch --depth 1 https://github.com/ceph/ceph-deploy
pushd ceph-deploy
./bootstrap
./ceph-deploy install --release ${CEPH_RELEASE} `hostname`

View File

@@ -7,7 +7,7 @@ set -o pipefail
find_files() {
find . -not \( \
\( \
-wholename '*/Godeps/*' \
-wholename '*/vendor/*' \
\) -prune \
\) -name '*.go'
}