Skip to content

Commit

Permalink
Improved TravisCI test script
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Dec 24, 2015
1 parent dd26874 commit 278cc10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ main() {
makeLink() {
# TravicCI download last stable version of ek, but it not ok
# remove downloaded version for linking with current version for test
if [[ -d $GOPATH/src/pkg.re/essentialkaos/ek.v1 ]] ; then
if [[ -e $GOPATH/src/pkg.re/essentialkaos/ek.v1 ]] ; then
echo "Directory pkg.re/essentialkaos/ek.v1 removed"
rm -rf $GOPATH/src/pkg.re/essentialkaos/ek.v1
fi

mkdir -p $GOPATH/src/pkg.re/essentialkaos
ln -sf $GOPATH/src/pkg.re/essentialkaos/ek.v1 $GOPATH/src/github.com/essentialkaos/ek

echo "Created link $GOPATH/src/pkg.re/essentialkaos/ek.v1 -> $GOPATH/src/github.com/essentialkaos/ek"
ln -sf $GOPATH/src/github.com/essentialkaos/ek $GOPATH/src/pkg.re/essentialkaos/ek.v1
}

# Test packaages and save coverage info to file
Expand Down

0 comments on commit 278cc10

Please sign in to comment.