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
+7
View File
@@ -1,3 +1,7 @@
env:
global:
- secure: Od2ZYUhrfms2EKvWZ+fhiy2aUMKO5v8km9gvRpLs3fQx/Wo23oQwVVx1lNE/bIZ9Uea596d/Y5VnSkZ4r7HRhwyyMw7F2M+5wbW+RIfHN05XaDma3H9ulF94mWQiMrbT9yFur3AeKb+Wwavl6U0bH7/DsFcXLq/z+1GaRNH/Bnc=
language: python
python:
- "2.6"
@@ -35,3 +39,6 @@ script:
# Test quaternions
- cd $TRAVIS_BUILD_DIR
- pymavlink/tools/quaterniontest.py
after_success:
- ./scripts/travis_update_generated_repos.sh
+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