mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
travis: Practically rewrite .travis.yml
- Make the build matrix actually run as a matrix - Add a few exclusion rules to turn off some of the more esoteric cases. - Install libav, to test that p3ffmpeg builds - Don't do a makepanda build at all on this branch - Simplify uses of Python - Change indentation style; no indentation for nested lists
This commit is contained in:
parent
5b3ca1bb05
commit
d9e769f656
80
.travis.yml
80
.travis.yml
@ -1,30 +1,29 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
# Build matrix:
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
- "3.5"
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
env:
|
||||||
|
- BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=0
|
||||||
|
- BUILD_METALIBS=OFF COMPOSITE_SOURCE_LIMIT=0
|
||||||
|
- BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=30
|
||||||
|
- BUILD_METALIBS=OFF COMPOSITE_SOURCE_LIMIT=30
|
||||||
|
|
||||||
|
# Remove some combinations from the build matrix, to be nice to Travis:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
exclude:
|
||||||
- compiler: clang
|
- python: "2.7"
|
||||||
env: BUILDSYSTEM=makepanda PYTHONV=python3 FLAGS=--installer
|
compiler: gcc
|
||||||
- compiler: clang
|
- python: "2.7"
|
||||||
env: BUILDSYSTEM=makepanda PYTHONV=python2.7 FLAGS=--override=STDFLOAT_DOUBLE=1
|
env: BUILD_METALIBS=OFF COMPOSITE_SOURCE_LIMIT=0
|
||||||
- compiler: gcc
|
- python: "2.7"
|
||||||
env: BUILDSYSTEM=makepanda PYTHONV=python2.7 FLAGS=--optimize=4
|
env: BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=30
|
||||||
before_install:
|
|
||||||
- export CC=gcc-4.7
|
|
||||||
- export CXX=g++-4.7
|
|
||||||
- compiler: gcc
|
|
||||||
env: BUILDSYSTEM=cmake PYTHONV=python2.7 FLAGS=-DCOMPOSITE_SOURCE_LIMIT=0 # Disable unity builds to catch missing #include directives
|
|
||||||
before_install:
|
|
||||||
- export CC=gcc-4.7
|
|
||||||
- export CXX=g++-4.7
|
|
||||||
- compiler: clang
|
|
||||||
env: BUILDSYSTEM=cmake PYTHONV=python3 FLAGS='-DWANT_PYTHON_VERSION=3 -DCOMPOSITE_SOURCE_LIMIT=0' # Disable unity builds to catch missing #include directives
|
|
||||||
- compiler: gcc
|
|
||||||
env: BUILDSYSTEM=cmake PYTHONV=python3 FLAGS='-DWANT_PYTHON_VERSION=3 -DCOMPOSITE_SOURCE_LIMIT=0' # Disable unity builds to catch missing #include directives
|
|
||||||
before_install:
|
|
||||||
- export CC=gcc-4.7
|
|
||||||
- export CXX=g++-4.7
|
|
||||||
- compiler: clang
|
|
||||||
env: BUILDSYSTEM=cmake PYTHONV=python2.7 FLAGS=-DCOMPOSITE_SOURCE_LIMIT=0 # Disable unity builds to catch missing #include directives
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
@ -34,6 +33,10 @@ addons:
|
|||||||
- g++-4.7
|
- g++-4.7
|
||||||
- bison
|
- bison
|
||||||
- flex
|
- flex
|
||||||
|
- libavcodec-dev
|
||||||
|
- libavformat-dev
|
||||||
|
- libavresample-dev
|
||||||
|
- libavutil-dev
|
||||||
- libfreetype6-dev
|
- libfreetype6-dev
|
||||||
- libgl1-mesa-dev
|
- libgl1-mesa-dev
|
||||||
- libjpeg-dev
|
- libjpeg-dev
|
||||||
@ -41,6 +44,7 @@ addons:
|
|||||||
- libopenal-dev
|
- libopenal-dev
|
||||||
- libpng-dev
|
- libpng-dev
|
||||||
- libssl-dev
|
- libssl-dev
|
||||||
|
- libswscale-dev
|
||||||
- libvorbis-dev
|
- libvorbis-dev
|
||||||
- libx11-dev
|
- libx11-dev
|
||||||
- libxcursor-dev
|
- libxcursor-dev
|
||||||
@ -51,18 +55,32 @@ addons:
|
|||||||
- python-virtualenv
|
- python-virtualenv
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- fakeroot
|
- fakeroot
|
||||||
script:
|
|
||||||
|
# clean up remnants of makepanda
|
||||||
|
before_install:
|
||||||
|
- mv makepanda/test_imports.py .
|
||||||
|
- makepanda/selfdestruct.py --yes
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- virtualenv --python=$PYTHONV venv && source venv/bin/activate
|
- virtualenv venv && source venv/bin/activate
|
||||||
- $PYTHONV -m pip install pytest
|
- pip install pytest
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- mkdir built
|
||||||
|
- cd built
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- '[[ "$BUILDSYSTEM" != "makepanda" ]] || ( $PYTHONV makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT $FLAGS --threads 4 && LD_LIBRARY_PATH=built/lib PYTHONPATH=built $PYTHONV makepanda/test_imports.py )'
|
- cmake -DHAVE_GTK2=NO -DBUILD_METALIBS=$BUILD_METALIBS -DCOMPOSITE_SOURCE_LIMIT=$COMPOSITE_SOURCE_LIMIT ..
|
||||||
- '[[ "$BUILDSYSTEM" != "cmake" ]] || ( mkdir built && cd built && mv ../makepanda/test_imports.py . && ../makepanda/selfdestruct.py --yes && cmake -DHAVE_GTK2=NO $FLAGS .. && make -j4 && $PYTHONV test_imports.py && cd .. )'
|
- make -j4
|
||||||
- LD_LIBRARY_PATH=built/lib PYTHONPATH=built $PYTHONV -m pytest tests
|
|
||||||
|
after_script:
|
||||||
|
- ../test_imports.py
|
||||||
|
- pytest ../tests
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
- "chat.freenode.net#panda3d"
|
- "chat.freenode.net#panda3d"
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
use_notice: true
|
use_notice: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user