mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 22:11:29 +00:00
Merge pull request #3554 from grahamjamesaddis/travis-ci-build
Allow forked beego project to pass travis ci builds
This commit is contained in:
commit
59466f6678
14
.travis.yml
14
.travis.yml
@ -9,9 +9,19 @@ services:
|
|||||||
- postgresql
|
- postgresql
|
||||||
- memcached
|
- memcached
|
||||||
env:
|
env:
|
||||||
- ORM_DRIVER=sqlite3 ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
|
global:
|
||||||
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
|
- GO_REPO_FULLNAME="github.com/astaxie/beego"
|
||||||
|
matrix:
|
||||||
|
- ORM_DRIVER=sqlite3 ORM_SOURCE=$TRAVIS_BUILD_DIR/orm_test.db
|
||||||
|
- ORM_DRIVER=postgres ORM_SOURCE="user=postgres dbname=orm_test sslmode=disable"
|
||||||
before_install:
|
before_install:
|
||||||
|
# link the local repo with ${GOPATH}/src/<namespace>/<repo>
|
||||||
|
- GO_REPO_NAMESPACE=${GO_REPO_FULLNAME%/*}
|
||||||
|
# relies on GOPATH to contain only one directory...
|
||||||
|
- mkdir -p ${GOPATH}/src/${GO_REPO_NAMESPACE}
|
||||||
|
- ln -sv ${TRAVIS_BUILD_DIR} ${GOPATH}/src/${GO_REPO_FULLNAME}
|
||||||
|
- cd ${GOPATH}/src/${GO_REPO_FULLNAME}
|
||||||
|
# get and build ssdb
|
||||||
- git clone git://github.com/ideawu/ssdb.git
|
- git clone git://github.com/ideawu/ssdb.git
|
||||||
- cd ssdb
|
- cd ssdb
|
||||||
- make
|
- make
|
||||||
|
Loading…
Reference in New Issue
Block a user