platform_build_blueprint/.travis.fix-fork.sh
Dan Willemsen 187a9bf7d5 Fix running travis on forked repos
If we're not on the official repo, link the directory structure around
so that go can still find the code.
2015-07-23 21:07:32 -07:00

9 lines
213 B
Bash
Executable file

#!/bin/bash
if echo $TRAVIS_BUILD_DIR | grep -vq "github.com/google/blueprint$" ; then
cd ../..
mkdir -p google
mv $TRAVIS_BUILD_DIR google/blueprint
cd google/blueprint
export TRAVIS_BUILD_DIR=$PWD
fi