diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000000000000000000000000000000000000..d55ae0854b210ef853f2cb8df5cca851e36d8b25 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,39 @@ +os: + - Visual Studio 2015 + +build: + verbosity: detailed + +install: + - SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" + - python --version + - python -m ensurepip + - python -m pip install --egg scons==2.4.1 + - cinst nsis.portable + +before_build: + - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 + +build_script: + - git submodule init + - git submodule update + - scons + + # Build externals # + - cd external + + # Install CERES # + - git clone https://ceres-solver.googlesource.com/ceres-solver + - cd ceres-solver + - mkdir build + - cd build + - cmake .. -DBUILD_SHARED_LIBS=OFF -DMINIGLOG=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX="..\..\build" -DEIGEN_INCLUDE_DIR="..\..\build\include" -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" + - nmake install + - cd ..\..\.. + + # Rebuild # + - scons -i + + # Generate product # + - makensis sources\scripts\installer.nsi + - appveyor PushArtifact sources\scripts\ALTA.exe diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..55e99d09be70a53a0b04cfe58b4d4c1e5794837d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +language: cpp +matrix: + include: + - os: linux + dist: trusty + sudo: required + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + - cmake + - libceres-dev + - libboost-python-dev + - libnlopt-dev + - coinor-libipopt-dev + + - os: osx + before_install: + - brew update + - brew install scons + + +before_install: + - OMP_NUM_THREADS=2 + - eval "${MATRIX_EVAL}" + #- sudo apt-get update -qq -y + #- sudo apt-get install -qq -y libopenexr-dev cmake libboost-python-dev libnlopt-dev coinor-libipopt-dev liblapack-dev libblas-dev libgfortran-4.8-dev + +script: + - git submodule init + - git submodule update + - scons + - scons tests + #- scons tests python -i +