-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy path.travis.yml
57 lines (51 loc) · 1.57 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
os: osx
language: generic
matrix:
include:
- name: Test formulae in MacOS 10.14 (Mojave)
os: osx
osx_image: xcode11.3
- name: Test formulae in MacOS 10.15 (Catalina)
os: osx
osx_image: xcode12u
- name: Sanity check the formulae
os: osx
osx_image: xcode11.3
env:
- BREW_SANITY_CHECK=ON
branches:
only:
- master
before_cache:
- brew cleanup
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
- if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow;
fi
- sudo chown -R $USER "$(brew --repo)"
- git -C "$(brew --repo)" reset --hard origin/master
- git -C "$(brew --repo)" clean -qxdff
- export HOMEBREW_DEVELOPER="1"
- brew update || brew update
- rm -rf "$(brew --repo $TRAVIS_REPO_SLUG)"
- mkdir -p "$(brew --repo $TRAVIS_REPO_SLUG)"
- rsync -az "$TRAVIS_BUILD_DIR/" "$(brew --repo $TRAVIS_REPO_SLUG)"
- export TRAVIS_BUILD_DIR="$(brew --repo $TRAVIS_REPO_SLUG)"
- cd "$(brew --repo)"
- ulimit -n 1024
script:
- if [[ "$BREW_SANITY_CHECK" == "ON" ]]; then
brew audit $(brew --repo $TRAVIS_REPO_SLUG)/Formula/*.rb;
brew style $(brew --repo $TRAVIS_REPO_SLUG)/Formula/*.rb;
else
brew uninstall python@2;
brew install px4-dev;
pip3 install --user --upgrade pyserial empy toml pandas jinja2 packaging pyyaml pyros-genmsg;
git clone -b master https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot;
cd ~/PX4-Autopilot;
make px4_fmu-v5_default;
fi