chiark / gitweb /
strip
[nlopt.git] / .travis.yml
index efa2bde7e88bb9c391749cac6a4223ef42e53230..e2c712d9eae661327a116269b47ca26fc3e9fc4a 100644 (file)
@@ -1,24 +1,44 @@
 language: cpp
 sudo: false
 
-addons:
-  apt:
-    packages:
-    - swig
-    - python-dev
-    - python-numpy
-    - guile-2.0-dev
-    - octave3.2-headers
-    - cmake
+matrix:
+  include:
+    - os: linux
+      addons:
+        apt:
+          packages:
+          - swig
+          - python-dev
+          - python-numpy
+          - guile-2.0-dev
+          - liboctave-dev
+          - cmake
+          - g++-mingw-w64-i686
+          - gcc-mingw-w64-i686
+          - binutils-mingw-w64-i686
+          - g++-mingw-w64-x86-64
+          - gcc-mingw-w64-x86-64
+          - binutils-mingw-w64-x86-64
+          - gfortran
 
-script:
-  - ./autogen.sh --no-configure
-  - mkdir build && pushd build
-  - ../configure --prefix=$HOME/.local --enable-shared --enable-maintainer-mode --enable-cxx
-  - make -j2
-  - make install
-  - python ../test/test_std.py
-  - rm -rf * ~/.local
-  - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DBUILD_SHARED_LIBS=ON ..
-  - make install -j2
-  - python ../test/test_std.py
+      script:
+        - pip install mkdocs python-markdown-math --user
+        - PATH=$PATH:~/.local/bin mkdocs build
+        - mkdir build && pushd build
+        - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_MATLAB=OFF -DNLOPT_FORTRAN=ON ..
+        - make install -j2 && ctest -j2 --output-on-failure
+        - rm -rf * ~/.local
+        - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_MATLAB=OFF -DCMAKE_TOOLCHAIN_FILE=$PWD/../cmake/toolchain-i686-w64-mingw32.cmake ..
+        - make install -j2
+        - rm -rf * ~/.local
+        - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DNLOPT_MATLAB=OFF -DCMAKE_TOOLCHAIN_FILE=$PWD/../cmake/toolchain-x86_64-w64-mingw32.cmake ..
+        - make install -j2
+
+    - os: osx
+      install:
+        - brew update
+        - brew install swig octave guile || echo "nope"
+      script:
+        - mkdir build && pushd build
+        - cmake -DCMAKE_INSTALL_PREFIX=~/.local -DPYTHON_EXECUTABLE=/usr/bin/python -DNLOPT_FORTRAN=ON ..
+        - make install && ctest --output-on-failure