Add dep fetch to tests part

This commit is contained in:
Aaron L 2017-04-23 16:43:41 -07:00
parent 0b44c26a26
commit 7de817b111

View file

@ -117,7 +117,7 @@ jobs:
- run: - run:
name: Build SQLBoiler name: Build SQLBoiler
command: | command: |
cd $ROOTPATH; go get -v cd $ROOTPATH; go get -v -t
cd $ROOTPATH; go build -v github.com/vattle/sqlboiler cd $ROOTPATH; go build -v github.com/vattle/sqlboiler
- run: - run:
@ -140,17 +140,27 @@ jobs:
name: 'Generate: MSSQL' name: 'Generate: MSSQL'
command: cd $ROOTPATH; ./sqlboiler -o mssql mssql command: cd $ROOTPATH; ./sqlboiler -o mssql mssql
- run:
name: Download generated and test deps
command: |
cd $ROOTPATH
go get -v -t ./...
- run: - run:
name: Run Tests name: Run Tests
command: | command: |
cd $ROOTPATH cd $ROOTPATH
cp ./testdata/mssql_test_schema.sql mssql/tables_schema.sql cp ./testdata/mssql_test_schema.sql mssql/tables_schema.sql
mkdir -p test_results/go go test -v -race ./... | tee test_out.txt
go test -v -race ./... > test_out.txt
cat test_out | go-junit-report > $ROOTPATH/test_results/go/out.xml - run:
name: Convert test output to JUNIT
command: |
mkdir -p $HOME/test_results/go
cat $ROOTPATH/test_out.txt | go-junit-report > $HOME/test_results/go/out.xml
- store_test_results: - store_test_results:
path: $ROOTPATH/test_results path: test_results
#test: #test:
# pre: # pre:
# - echo -e "[postgres]\nhost=\"localhost\"\nport=5432\nuser=\"ubuntu\"\ndbname=\"sqlboiler\"\n" > sqlboiler.toml # - echo -e "[postgres]\nhost=\"localhost\"\nport=5432\nuser=\"ubuntu\"\ndbname=\"sqlboiler\"\n" > sqlboiler.toml