You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. language: cpp
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.cache/pip
  6. addons:
  7. apt:
  8. sources:
  9. - ubuntu-toolchain-r-test
  10. - deadsnakes
  11. packages:
  12. - g++-4.8
  13. - g++-4.8-multilib
  14. - g++-multilib
  15. - python3.5
  16. - python3.5-dev
  17. - python3.5-venv
  18. - python3.5-dev:i386
  19. matrix:
  20. include:
  21. - os: linux
  22. compiler: gcc-4.8
  23. script:
  24. - pyvenv-3.5 venv
  25. - cmake -DPYBIND11_PYTHON_VERSION=3.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.5m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.5m.so -DPYTHON_EXECUTABLE:FILEPATH=`pwd`/venv/bin/python3.5 -DCMAKE_CXX_COMPILER=g++-4.8
  26. - make -j 2
  27. - source venv/bin/activate
  28. - pip install numpy
  29. - CTEST_OUTPUT_ON_FAILURE=TRUE make test
  30. - os: osx
  31. compiler: clang
  32. script:
  33. - cmake -DPYBIND11_PYTHON_VERSION=2.7
  34. - make -j 2
  35. - CTEST_OUTPUT_ON_FAILURE=TRUE make test
  36. #- os: linux
  37. #compiler: gcc-4.8
  38. #script:
  39. #- pyvenv-3.5 venv
  40. #- cmake -DPYBIND11_PYTHON_VERSION=3.5 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.5m -DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.5m.so -DPYTHON_EXECUTABLE:FILEPATH=`pwd`/venv/bin/python3.5 -DCMAKE_CXX_COMPILER=g++-4.8 -DCMAKE_CXX_FLAGS=-m32
  41. #- make -j 2