make tests use glide novendor

This commit is contained in:
Radu Ioan Fericean
2016-03-25 15:11:02 +02:00
parent 069af112a6
commit 393d893ef7
3 changed files with 5 additions and 78 deletions

View File

@@ -7,7 +7,7 @@ install:
- go get github.com/Masterminds/glide
- glide install
script: $TRAVIS_BUILD_DIR/test.sh
script: go test -v $(glide novendor)
branches:
only: master

View File

@@ -1,32 +1,5 @@
#! /usr/bin/env sh
./test.sh
gen=$?
echo 'go test github.com/cgrates/cgrates/apier/v1 -local'
go test github.com/cgrates/cgrates/apier/v1 -local
ap1=$?
echo 'go test github.com/cgrates/cgrates/apier/v2 -local'
go test github.com/cgrates/cgrates/apier/v2 -local
ap2=$?
echo 'go test github.com/cgrates/cgrates/engine -local -integration'
go test github.com/cgrates/cgrates/engine -local -integration
en=$?
echo 'go test github.com/cgrates/cgrates/cdrc -local'
go test github.com/cgrates/cgrates/cdrc -local
cdrc=$?
echo 'go test github.com/cgrates/cgrates/config -local'
go test github.com/cgrates/cgrates/config -local
cfg=$?
echo 'go test github.com/cgrates/cgrates/utils -local'
go test github.com/cgrates/cgrates/utils -local
utl=$?
echo 'go test github.com/cgrates/cgrates/general_tests -local -integration'
go test github.com/cgrates/cgrates/general_tests -local -integration
gnr=$?
echo 'go test github.com/cgrates/cgrates/agents -integration'
go test github.com/cgrates/cgrates/agents -integration
agts=$?
echo 'go test github.com/cgrates/cgrates/sessionmanager -integration'
go test github.com/cgrates/cgrates/sessionmanager -integration
smg=$?
exit $gen && $ap1 && $ap2 && $en && $cdrc && $cfg && $utl && $gnr && $agts && $smg
go test -local -integration $(glide novendor)
exit $gen && $?

50
test.sh
View File

@@ -1,50 +1,4 @@
#! /usr/bin/env sh
./build.sh
go test -i github.com/cgrates/cgrates/apier/v1
go test -i github.com/cgrates/cgrates/apier/v2
go test -i github.com/cgrates/cgrates/engine
go test -i github.com/cgrates/cgrates/sessionmanager
go test -i github.com/cgrates/cgrates/config
go test -i github.com/cgrates/cgrates/cmd/cgr-engine
go test -i github.com/cgrates/cgrates/cache2go
go test -i github.com/cgrates/cgrates/cdrc
go test -i github.com/cgrates/cgrates/utils
go test -i github.com/cgrates/cgrates/history
go test -i github.com/cgrates/cgrates/cdre
go test -i github.com/cgrates/cgrates/agents
go test -i github.com/cgrates/cgrates/structmatcher
go test github.com/cgrates/cgrates/apier/v1
v1=$?
go test github.com/cgrates/cgrates/apier/v2
v2=$?
go test github.com/cgrates/cgrates/engine
en=$?
go test github.com/cgrates/cgrates/general_tests
gt=$?
go test github.com/cgrates/cgrates/sessionmanager
sm=$?
go test github.com/cgrates/cgrates/config
cfg=$?
go test github.com/cgrates/cgrates/cmd/cgr-engine
cr=$?
go test github.com/cgrates/cgrates/console
con=$?
go test github.com/cgrates/cgrates/cdrc
cdrcs=$?
go test github.com/cgrates/cgrates/utils
ut=$?
go test github.com/cgrates/cgrates/history
hs=$?
go test github.com/cgrates/cgrates/cache2go
c2g=$?
go test github.com/cgrates/cgrates/cdre
cdre=$?
go test github.com/cgrates/cgrates/agents
ag=$?
go test github.com/cgrates/cgrates/structmatcher
sc=$?
exit $v1 && $v2 && $en && $gt && $sm && $cfg && $bl && $cr && $con && $cdrc && $ut && $hs && $c2g && $cdre && $ag && $sc
go test $(glide novendor)
exit $?