forked from cyberbotics/webots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (73 loc) · 2.03 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
os: linux
dist: xenial
git:
depth: 3
submodules: true
language: python
python:
- "2.7"
- "3.7"
matrix: # macos can't be listed in 'os' as we need to set 'generic' as language (because travis doesn't support python on macos for now)
include:
- os: osx
osx_image: xcode10.2 # Xcode: 10.2.1 | macOS: 10.14
language: generic
jdk: openjdk8
cache: pip
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository ppa:deadsnakes/ppa -y; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt update; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt install python3.6-dev python3.7-dev; fi
- if [ $TRAVIS_OS_NAME = linux ]; then curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt install nodejs; fi
install:
- pip install -r tests/sources/requirements.txt
- pip install -r docs/tests/requirements.txt
addons:
apt:
packages:
- clang-format-5.0
- g++
- cmake
- libusb-dev
- swig
- python2.7-dev
- libglu1-mesa-dev
- libglib2.0-dev
- libfreeimage-dev
- libfreetype6-dev
- libxml2-dev
- libzzip-0-13
- libssl-dev
- libboost-dev
- libjpeg8-dev
- libavcodec-extra
- libpci-dev
- libgd-dev
- libtiff5-dev
- libssh-dev
- libzip-dev
- python-pip
- libreadline-dev
- libassimp-dev
- libpng12-dev
- libav-tools
- python3.5-dev
- openjdk-8-jdk
- curl
- libwebpdemux1
- fakeroot
homebrew:
packages:
- clang-format
- cppcheck
- python
- cmake
- swig
- wget
- node
script:
- if [ $TRAVIS_OS_NAME = linux ]; then export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64; else export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"; fi
- python -m unittest discover -s docs/tests
- travis_wait 30 python -m unittest discover -s tests/sources
- if [ $TRAVIS_EVENT_TYPE = cron ]; then travis_wait 45 python tests/test_compilation.py; fi