git-lfs/.travis.yml
Steve Streeting 4fd1d0ec2d Make it possible to enable Travis on forks
Doesn't usually build with a fork because the clone path is $fork_user/git-lfs instead of github/git-lfs which breaks package references. This fixes that.
Note that this code should work on any golang repo owned by github
2015-06-15 16:25:51 +01:00

10 lines
382 B
YAML

# http://docs.travis-ci.com/user/languages/go/
language: go
install: true
script: script/cibuild
notifications:
email: false
before_install:
- repo=`basename $PWD`; localDir=`dirname $PWD`; cfDir="`dirname $localDir`/github"
- if [[ "$localDir" != "$cfDir" ]]; then mv "$localDir" "$cfDir"; cd ../../github/$repo; export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$repo; fi