chiark / gitweb /
Fix wrong layout of references (#196)
[nlopt.git] / .travis.yml
1 language: cpp
2 sudo: false
3
4 matrix:
5   include:
6     - os: linux
7       addons:
8         apt:
9           packages:
10           - swig
11           - python-dev
12           - python-numpy
13           - guile-2.0-dev
14           - liboctave-dev
15           - cmake
16           - g++-mingw-w64-i686
17           - gcc-mingw-w64-i686
18           - binutils-mingw-w64-i686
19           - g++-mingw-w64-x86-64
20           - gcc-mingw-w64-x86-64
21           - binutils-mingw-w64-x86-64
22       script:
23         - pip install mkdocs python-markdown-math --user
24         - PATH=$PATH:~/.local/bin mkdocs build
25         - mkdir build && pushd build
26         - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_CXX=ON -DNLOPT_GUILE=OFF -DNLOPT_MATLAB=OFF ..
27         - make install -j2 && ctest -j2 --output-on-failure
28         - rm -rf * ~/.local
29         - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_CXX=ON -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_MATLAB=OFF -DCMAKE_TOOLCHAIN_FILE=$PWD/../cmake/toolchain-i686-w64-mingw32.cmake ..
30         - make install -j2
31         - rm -rf * ~/.local
32         - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_CXX=ON -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_MATLAB=OFF -DCMAKE_TOOLCHAIN_FILE=$PWD/../cmake/toolchain-x86_64-w64-mingw32.cmake ..
33         - make install -j2
34
35     - os: osx
36       install:
37         - brew update
38         # TODO: install guile once 2.2 is supported in swig
39         - brew install swig octave || echo "nope"
40       script:
41         - mkdir build && pushd build
42         - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_CXX=ON -DPYTHON_EXECUTABLE=/usr/bin/python ..
43         - make install && ctest --output-on-failure