Skip to content

Commit 1ce5369

Browse files
pawanpraka1Kiran Mova
authored andcommitted
test(zfspv): making test cases to run on forked repo
Signed-off-by: Pawan <[email protected]>
1 parent c3c5eb1 commit 1ce5369

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ before_install:
2323
- truncate -s 100G /tmp/disk.img
2424
- sudo zpool create -f zfspv-pool /tmp/disk.img
2525
install:
26+
- if [ "$TRAVIS_BUILD_DIR" != "$GOPATH/src/github.com/openebs/zfs-localpv" ]; then
27+
mkdir -p $GOPATH/src/github.com/openebs/;
28+
mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/openebs;
29+
cd $GOPATH/src/github.com/openebs/zfs-localpv;
30+
fi
2631
- make bootstrap
2732
- make format
2833
- curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl

buildscripts/travis-build.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,15 @@ set -e
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
SRC_REPO="$TRAVIS_BUILD_DIR"
1817
DST_REPO="$GOPATH/src/github.com/openebs/zfs-localpv"
1918

2019
function checkGitDiff() {
2120
if [[ `git diff --shortstat | wc -l` != 0 ]]; then echo "Some files got changed after $1";printf "\n";git diff --stat;printf "\n"; exit 1; fi
2221
}
2322

24-
if [ "$SRC_REPO" != "$DST_REPO" ];
25-
then
26-
echo "Copying from $SRC_REPO to $DST_REPO"
27-
# Get the git commit
28-
echo "But first, get the git revision from $SRC_REPO"
29-
GIT_COMMIT="$(git rev-parse HEAD)"
30-
echo $GIT_COMMIT >> $SRC_REPO/GITCOMMIT
31-
32-
mkdir -p $DST_REPO
33-
cp -R $SRC_REPO/* $DST_REPO/
34-
cd $DST_REPO
35-
fi
36-
3723
#make golint-travis
3824
#rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
3925

40-
echo "Running : make format"
41-
make format
42-
rc=$?; if [[ $rc != 0 ]]; then echo "make format failed"; exit $rc; fi
43-
checkGitDiff "make format"
44-
printf "\n"
45-
4626
echo "Running : make kubegen"
4727
make kubegen
4828
rc=$?; if [[ $rc != 0 ]]; then echo "make kubegen failed"; exit $rc; fi
@@ -54,10 +34,3 @@ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
5434

5535
make all
5636
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
57-
58-
if [ $SRC_REPO != $DST_REPO ];
59-
then
60-
echo "Copying coverage.txt to $SRC_REPO"
61-
cp coverage.txt $SRC_REPO/
62-
cd $SRC_REPO
63-
fi

0 commit comments

Comments
 (0)