mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:03:34 +08:00
appveyor: fix PX4 version format check
by removing shallow clone such that we can infer the version from the last tag
This commit is contained in:
committed by
Daniel Agar
parent
e296297ab7
commit
5afa404b7f
+2
-3
@@ -1,7 +1,6 @@
|
|||||||
# Build version
|
# Build version
|
||||||
version: "{build}"
|
version: "{build}"
|
||||||
# shallow clone the main repo
|
# do not shallow clone because we want to infer the version from the last tag
|
||||||
clone_depth: 1
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
@@ -36,7 +35,7 @@ build_script:
|
|||||||
# safe the repopath for switching to it in cygwin bash
|
# safe the repopath for switching to it in cygwin bash
|
||||||
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
- for /f %%i in ('cygpath -u %%CD%%') do set repopath=%%i
|
||||||
# build the make target
|
# build the make target
|
||||||
- call bash --login -c "cd $repopath && git fetch --tags && make $PX4_CONFIG"
|
- call bash --login -c "cd $repopath && make $PX4_CONFIG"
|
||||||
|
|
||||||
# Note: using bash --login is important
|
# Note: using bash --login is important
|
||||||
# because otherwise certain things (like python; import numpy) do not work
|
# because otherwise certain things (like python; import numpy) do not work
|
||||||
|
|||||||
Reference in New Issue
Block a user