Skip to content
Permalink
Browse files

travis: Revert back to `master`

  • Loading branch information
CFSworks committed Oct 5, 2019
1 parent 5961cc2 commit 8b049bcb9b779b17f33b7edfdb3376bef7c79420
Showing with 14 additions and 78 deletions.
  1. +14 −78 .travis.yml
@@ -1,28 +1,18 @@
language: cpp
sudo: false

cache: ccache

# Build matrix:
os:
- linux
- osx
compiler:
- clang
env:
- BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=30
- BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=30 PYTHON_INTERP=python2.7
- BUILD_METALIBS=OFF COMPOSITE_SOURCE_LIMIT=30
- BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=0
matrix:
exclude:
- os: osx
env: BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=0
include:
- os: osx
env: BUILD_METALIBS=ON COMPOSITE_SOURCE_LIMIT=30 COMPOSITE_SOURCE_EXCLUSIONS='p3showbase;p3dtoolutil;p3cocoadisplay;p3osxdisplay;p3tinydisplay;p3display'
- compiler: clang
env: PYTHONV=python3 FLAGS=--installer
- compiler: clang
env: PYTHONV=python2.7 FLAGS=--override=STDFLOAT_DOUBLE=1
- compiler: gcc

env: PYTHONV=python2.7 FLAGS=--optimize=4
before_install:
- export CC=gcc-4.7
- export CXX=g++-4.7
- compiler: clang
env: PYTHONV=python3 FLAGS=--no-python SKIP_TESTS=1
addons:
apt:
sources:
@@ -32,83 +22,29 @@ addons:
- g++-4.7
- bison
- flex
- libavcodec-dev
- libavformat-dev
- libavresample-dev
- libavutil-dev
- libfreetype6-dev
- libgl1-mesa-dev
- libjpeg-dev
- libode-dev
- libopenal-dev
- libpng-dev
- libssl-dev
- libswscale-dev
- libvorbis-dev
- libx11-dev
- libxcursor-dev
- libxrandr-dev
- nvidia-cg-toolkit
- python-dev
- python3-dev
- python3-pip
- python-virtualenv
- zlib1g-dev
- fakeroot

before_install:
# clean up remnants of makepanda
- makepanda/selfdestruct.py --yes

install:
- >
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install python@3 eigen libsquish zlib ffmpeg freetype \
bullet opencv assimp libvorbis openssl ccache || true
brew install ode --with-shared
# We can't trust brew to make the right symlinks, so execute commands as modules
${PYTHON_INTERP:-python3} -m pip install virtualenv
${PYTHON_INTERP:-python3} -m virtualenv venv
else
virtualenv --python=${PYTHON_INTERP:-python3} venv
fi
- source venv/bin/activate
- pip install pytest

before_script:
- mkdir built
- cd built

- virtualenv --python=$PYTHONV venv && source venv/bin/activate
- $PYTHONV -m pip install pytest
script:
# This is kind of a hack, but needed to test non-metalib builds (until
# interrogate has a way of explicitly calling init_libpanda)
- '[ "x$BUILD_METALIBS" == "xON" -o "x$TRAVIS_OS_NAME" == "xosx" ] || export LDFLAGS=-Wl,--no-as-needed'

- >
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$PYTHON_INTERP" == "python2.7" ]]; then
export PY2_CMAKE_ARGS=-DPYTHON_EXECUTABLE=/usr/local/Frameworks/Python.framework/Versions/2.7/bin/python
fi
cmake -DBUILD_METALIBS=$BUILD_METALIBS \
-DWANT_PYTHON_VERSION=$(python -V 2>&1 | cut -d' ' -f2) \
-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache \
-DCOMPOSITE_SOURCE_EXCLUSIONS="$COMPOSITE_SOURCE_EXCLUSIONS" \
-DCOMPOSITE_SOURCE_LIMIT=$COMPOSITE_SOURCE_LIMIT \
-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl $PY2_CMAKE_ARGS ..
else
cmake -DHAVE_GTK2=NO -DBUILD_METALIBS=$BUILD_METALIBS \
-DWANT_PYTHON_VERSION=$(python -V 2>&1 | cut -d' ' -f2) \
-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache \
-DCOMPOSITE_SOURCE_EXCLUSIONS="$COMPOSITE_SOURCE_EXCLUSIONS" \
-DCOMPOSITE_SOURCE_LIMIT=$COMPOSITE_SOURCE_LIMIT ..
fi
- make -j4

- export PYTHONPATH=$PWD
- pytest -v ../tests

- $PYTHONV makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT $FLAGS --threads 4
- test -n "$SKIP_TESTS" || LD_LIBRARY_PATH=built/lib PYTHONPATH=built $PYTHONV -m pytest -v tests
notifications:
irc:
channels:

0 comments on commit 8b049bc

Please sign in to comment.
You can’t perform that action at this time.