Newer
Older
- 1.3
- 1.3.1
- 1.3.2
- 1.3.3
- 1.4
- 1.4.1
José Carlos Nieto
committed
- 1.4.2
env: GOARCH=amd64 TEST_HOST=127.0.0.1 UPPERIO_DB_DEBUG=1
- sudo apt-get install -y bzr make
- mv $PWD $GOPATH/src/upper.io/db
- cd $GOPATH/src/upper.io/db
- go get -v github.com/cznic/ql/ql # ql command line util.
- go get -v -t -d
- go get -v -t -d upper.io/db/mysql
- go get -v -t -d upper.io/db/sqlite
- go get -v -t -d upper.io/db/postgresql
- go get -v -t -d upper.io/db/mongo
- go get -v -t -d upper.io/db/ql
- go get -v github.com/jmoiron/sqlx
- (cd $GOPATH/src/github.com/jmoiron/sqlx && git pull -a && git checkout ptrs) # temporal fix
- (cd $GOPATH/src/github.com/jmoiron/sqlx && go build -a && go install)
- export TRAVIS_BUILD_DIR=$GOPATH/src/upper.io/db
José Carlos Nieto
committed
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
- rm -rf $HOME/gopath/src/upper.io
- mkdir -p $HOME/gopath/src/upper.io
- mv $HOME/gopath/src/github.com/upper/db $HOME/gopath/src/upper.io
- cd $HOME/gopath/src/upper.io/db
- export TRAVIS_BUILD_DIR=$HOME/gopath/src/upper.io/db
- cat mysql/_dumps/structs.sql | mysql -uupperio -pupperio upperio_tests
- cat postgresql/_dumps/setup.sql | psql -U postgres
- cat postgresql/_dumps/structs.sql | PGPASSWORD="upperio" psql -U upperio upperio_tests
- mongo upperio_tests --eval 'db.addUser("upperio", "upperio")'
- (cd mysql/_dumps && make)
- (cd postgresql/_dumps && make)
- (cd sqlite/_dumps && make)
- (cd ql/_dumps && make)
- cat ql/_dumps/structs.sql | $GOPATH/bin/ql -db ql/_dumps/test.db
- cd $GOPATH/src/upper.io/db
- go test upper.io/db/mysql -test.bench=.
- go test upper.io/db/sqlite -test.bench=.
- go test upper.io/db/ql -test.bench=.
- go test upper.io/db/mongo -test.bench=.