Update binary generator

This commit is contained in:
Lorenz Meier
2014-12-29 11:14:54 +01:00
parent e251b290ed
commit 1073f99e89
2 changed files with 33 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
# Do not build pull requests
if [[ $TRAVIS_PULL_REQUEST != "false" ]]
then
exit 0
fi
# Do only build master branch
if [[ $TRAVIS_BRANCH != "master" ]]
then
exit 0
fi
git remote rename origin upstream
git config --global user.email "bot@pixhawk.org"
git config --global user.name "PX4BuildBot"
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials
# Build C library
mkdir -p include/mavlink/v1.0
cd include/mavlink/v1.0 && git clone https://github.com:mavlink/c_library.git
./scripts/update_c_library.sh
# XXX add build steps for other libraries as well