Unverified Commit 5ae35b80 authored by greole's avatar greole Committed by GitHub
Browse files

Travis external ginkgo (#9)

* add external ginkgo flag to ci/cd matrix

* fix ci/cd matrix + test conditional job

* add a test script for external ginkgo build

* fix external ginkgo build flags to speedup build

* Add missing sudo to install ginkgo to system.

* fix cmake build arguments
parent b1516f18
......@@ -8,8 +8,10 @@ os:
- linux
env:
- VERSION=8
- VERSION=7
- VERSION=8 EXTERNAL_GINKGO=OFF
- VERSION=8 EXTERNAL_GINKGO=ON
- VERSION=7 EXTERNAL_GINKGO=OFF
- VERSION=7 EXTERNAL_GINKGO=ON
cache:
directories:
......@@ -33,12 +35,13 @@ before_install:
install:
- sudo apt-get -y install openfoam$VERSION
- source /opt/openfoam$VERSION/etc/bashrc
- ./scripts/travis_install_external_ginkgo.sh
before_script:
- cmake --version
- cmake --version
- mkdir build
- cd build
- cmake ..
- cmake -DOGL_USE_EXTERNAL_GINKGO=$EXTERNAL_GINKGO ..
script:
- make -j4
#!/bin/bash
if [ $EXTERNAL_GINKGO = ON ]
then
git clone https://github.com/ginkgo-project/ginkgo.git
mkdir ginkgo/build
cd ginkgo/build
cmake \
-DGINKGO_BUILD_BENCHMARKS=OFF \
-DGINKGO_BUILD_EXAMPLES=OFF \
-DGINKGO_BUILD_CUDA=off \
-DGINKGO_BUILD_HIP=off \
-DGINKGO_BUILD_OMP=off \
-DGINKGO_BUILD_TESTS=off\
-DGINKGO_BUILD_REFERENCE=on \
-DCMAKE_BUILD_TYPE=Release \
-DGINKGO_BUILD_HWLOC=off \
..
make && sudo make install
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment