-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
46 lines (45 loc) · 1.7 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
# http://travis-ci.org/#!/CanberraUAV/cuav
language: python
python:
- 3.5
- 2.7
cache:
pip: true
apt: true
addons:
apt:
packages:
- python-numpy
- libgstreamer-plugins-base0.10-dev
- libnotify-dev
- libgtk-3-dev
- libwebkitgtk-3.0-dev
- libgstreamer-plugins-base1.0-dev
before_install:
#Download SRTM data, because MAVProxy fails without it cached
#It returns a None if needs to download in the background (need to fix this)
- mkdir -p $HOME/.tilecache/SRTM
- cp $TRAVIS_BUILD_DIR/tests/testdata/filelist_python $HOME/.tilecache/SRTM/filelist_python
- cd $HOME/.tilecache/SRTM
- wget http://firmware.ardupilot.org/SRTM/Africa/S16E011.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S21E145.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Africa/S28E020.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S35E148.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S35E149.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S36E148.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S36E149.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Australia/S37E148.hgt.zip
- wget http://firmware.ardupilot.org/SRTM/Islands/S47E037.hgt.zip
- cd $TRAVIS_BUILD_DIR
install:
#Prerequisites
- pip install opencv-python future
- pip install pymavlink MAVProxy piexif
- pip install -r ./tests/requirements-test.txt
#Using pip install wxpython takes waaay too long, so downloading precompiled version instead
- pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-14.04 wxPython
- python setup.py build install
before_script:
- ls
script:
- py.test --junitxml=./unittests.xml ./tests/