From 1967bc6632921aa370049ac04f1e19552f58330b Mon Sep 17 00:00:00 2001 From: Laurent Belcour Date: Wed, 11 Oct 2017 14:44:04 +0200 Subject: [PATCH] [CI] Adding the CI scripts --- .appveyor.yml | 39 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 .appveyor.yml create mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..d55ae08 --- /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 0000000..55e99d0 --- /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 + -- GitLab