1
0
mirror of https://github.com/astaxie/beego.git synced 2025-01-10 11:47:14 +00:00
Beego/.travis.yml

52 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2016-01-08 15:34:02 +08:00
language: go
go:
2016-01-29 00:01:04 +08:00
- tip
2016-03-01 21:41:44 +08:00
- 1.6.0
2016-01-25 21:13:56 +08:00
- 1.5.3
- 1.4.3
2016-01-08 15:34:02 +08:00
services:
- redis-server
- mysql
- postgresql
- memcached
env:
- ORM_DRIVER=sqlite3 ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
2016-01-08 23:00:22 +08:00
- ORM_DRIVER=mysql ORM_SOURCE="root:@/orm_test?charset=utf8"
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
2016-03-08 12:45:54 +08:00
before_install:
- git clone git://github.com/ideawu/ssdb.git
- cd ssdb
- make
- cd ..
2016-01-08 23:10:50 +08:00
install:
- go get github.com/lib/pq
- go get github.com/go-sql-driver/mysql
- go get github.com/mattn/go-sqlite3
2016-01-08 23:20:25 +08:00
- go get github.com/bradfitz/gomemcache/memcache
- go get github.com/garyburd/redigo/redis
- go get github.com/beego/x2j
2016-03-01 21:41:44 +08:00
- go get github.com/couchbase/go-couchbase
2016-01-08 23:20:25 +08:00
- go get github.com/beego/goyaml2
- go get github.com/belogik/goes
- go get github.com/siddontang/ledisdb/config
- go get github.com/siddontang/ledisdb/ledis
2016-01-25 21:20:10 +08:00
- go get golang.org/x/tools/cmd/vet
2016-01-25 21:13:56 +08:00
- go get github.com/golang/lint/golint
2016-03-07 10:31:56 +08:00
- go get github.com/ssdb/gossdb/ssdb
2016-01-08 15:34:02 +08:00
before_script:
2016-01-08 23:00:22 +08:00
- sh -c "if [ '$ORM_DRIVER' = 'postgres' ]; then psql -c 'create database orm_test;' -U postgres; fi"
- sh -c "if [ '$ORM_DRIVER' = 'mysql' ]; then mysql -u root -e 'create database orm_test;'; fi"
- sh -c "if [ '$ORM_DRIVER' = 'sqlite' ]; then touch $TRAVIS_BUILD_DIR/orm_test.db; fi"
2016-03-08 12:45:54 +08:00
- mkdir -p res/var
- ./ssdb/ssdb-server ./ssdb/ssdb.conf -d
after_script:
-killall -w ssdb-server
- rm -rf ./res/var/*
2016-01-25 21:13:56 +08:00
script:
- go vet -x ./...
2016-03-10 22:21:21 +08:00
- $HOME/gopath/bin/golint ./...
2016-01-25 21:13:56 +08:00
- go test -v ./...
2016-01-31 23:28:56 +08:00
notifications:
webhooks: https://hooks.pubu.im/services/z7m9bvybl3rgtg9