mirror of
https://github.com/mavlink/mavlink.git
synced 2026-06-19 07:35:34 +00:00
Update binary generator
This commit is contained in:
@@ -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
|
||||
|
||||
Executable
+26
@@ -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
|
||||
Reference in New Issue
Block a user