Add pre-build script for Travis-CI.