forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
92 lines (81 loc) · 2.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Build and autotest script for PX4 Firmware
# http://travis-ci.org
sudo: required
dist: xenial
services:
- docker
language: cpp
git:
depth: 100
submodules: false
cache:
ccache: true
env:
# FIXME: fmu-v2 firmware does not fit in 1mb
# - BUILD_TARGET=px4_fmu-v2_default
- BUILD_TARGET=px4_fmu-v2_lpe
- BUILD_TARGET=px4_fmu-v3_default
- BUILD_TARGET=px4_fmu-v4_default
- BUILD_TARGET=px4_fmu-v5_default
stage: Build
script:
- ./Tools/docker_run.sh make ${BUILD_TARGET}
jobs:
include:
- stage: Tests
name: Self-tests
script: PX4_DOCKER_REPO="px4io/px4-dev-simulation-bionic:2019-10-04" ./Tools/docker_run.sh make tests
- stage: Tests
name: Mission test
env:
- PX4_DOCKER_REPO="px4io/px4-dev-ros-melodic:2019-10-24"
before_script:
- ./Tools/docker_run.sh make px4_sitl_default
- ./Tools/docker_run.sh make px4_sitl_default sitl_gazebo
script:
- ./Tools/docker_run.sh ./test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=MC_mission_box vehicle:=iris
- stage: Tests
name: Offboard test
env:
- PX4_DOCKER_REPO="px4io/px4-dev-ros-melodic:2019-10-24"
before_script:
- ./Tools/docker_run.sh make px4_sitl_default
- ./Tools/docker_run.sh make px4_sitl_default sitl_gazebo
script:
- ./Tools/docker_run.sh ./test/rostest_px4_run.sh mavros_posix_tests_offboard_attctl.test mission:= vehicle:=iris
- ./Tools/docker_run.sh ./test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test mission:= vehicle:=iris
- stage: Annotate
name: Auto-generate changelog
language: python
python: 3.6
install:
- pip install GitPython PyGithub
script:
- python ./gen_changelog.py
stages:
- Tests
- Build
- Annotate
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}
file_glob: true
file:
- build/**/*px4_fmu*.px4
# FIXME: pack .elf files into a zip archive
# - build/**/*px4fmu*.elf
skip_cleanup: true
on:
tags: true
prerelease: true
draft: true
name: ${TRAVIS_TAG}
#addons:
# coverity_scan:
# project:
# name: "PX4/Firmware"
# description: "Build submitted via Travis CI"
# notification_email: ci@px4.io
# build_command_prepend: "make distclean"
# build_command: "make posix_sitl_default"
# branch_pattern: coverity_scan