mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 06:03:33 +08:00
Update CI to use the main branches.
This commit is contained in:
@@ -3,7 +3,7 @@ name: Checks
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Clang Tidy
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Linux Targets
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Linux ARM64 Targets
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: MacOS build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Nuttx Targets
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Deploy metadata for all targets
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
- 'release/*'
|
- 'release/*'
|
||||||
- 'pr-metadata-test'
|
- 'pr-metadata-test'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: MAVROS Mission Tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: MAVROS Offboard Tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Metadata
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
- 'release/*'
|
- 'release/*'
|
||||||
- 'pr-metadata-test'
|
- 'pr-metadata-test'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Python CI Checks
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: SITL Tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'main'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ matrix:
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
# In order to stay under the coverity rate limit, we only run this weekly
|
# In order to stay under the coverity rate limit, we only run this weekly
|
||||||
# and not on push which is configured in travis-ci settings.
|
# and not on push which is configured in travis-ci settings.
|
||||||
if: branch = master
|
if: branch = main
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
||||||
|
|||||||
Vendored
+2
-2
@@ -297,10 +297,10 @@ pipeline {
|
|||||||
sh('make distclean; git clean -ff -x -d .')
|
sh('make distclean; git clean -ff -x -d .')
|
||||||
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
||||||
sh("git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_msgs.git")
|
sh("git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_msgs.git")
|
||||||
// 'master' branch
|
// 'main' branch
|
||||||
sh('./msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/')
|
sh('./msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/')
|
||||||
sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true')
|
sh('cd px4_msgs; git status; git add .; git commit -a -m "Update message definitions `date`" || true')
|
||||||
sh('cd px4_msgs; git push origin master || true')
|
sh('cd px4_msgs; git push origin main || true')
|
||||||
// 'ros1' branch
|
// 'ros1' branch
|
||||||
sh('cd px4_msgs; git checkout ros1')
|
sh('cd px4_msgs; git checkout ros1')
|
||||||
sh('./msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/')
|
sh('./msg/tools/uorb_to_ros_msgs.py msg/ px4_msgs/msg/')
|
||||||
|
|||||||
Reference in New Issue
Block a user