File: build-osx.sh

package info (click to toggle)
madness 0.10.1%2Bgit20200818.eee5fd9f-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 34,980 kB
  • sloc: cpp: 280,841; ansic: 12,626; python: 4,961; fortran: 4,245; xml: 1,053; makefile: 714; sh: 276; perl: 244; yacc: 227; lex: 188; asm: 141; csh: 55
file content (40 lines) | stat: -rwxr-xr-x 971 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh

# OSX tests presently not supported since Travis OSX environment is so problematic
exit 1

# Exit on error
set -ev

CC=gcc
CXX=clang

$CC --version
$CXX --version

# Configure MADNESS
mkdir build
cd build
export LDFLAGS=`cmake --find-package -DNAME=clang -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=LINK`
echo $LDFLAGS
cmake \
    -D CMAKE_BUILD_TYPE=RelWithDebInfo \
    -D ENABLE_UNITTESTS=ON \
    -D ENABLE_NEVER_SPIN=ON \
    -D CMAKE_C_COMPILER=$CC \
    -D CMAKE_CXX_COMPILER=$CXX \
    $CMAKE_EXTRA_OPTIONS \
    ..

if [ "$RUN_TEST" = "deponly" ]; then
    echo "Build dependencies only --- no source compiled or tests being run"
elif [ "$RUN_TEST" = "buildonly" ]; then
    # Build all libraries, examples, and applications
    make -j2 all
else
    # Run unit tests
    export MAD_NUM_THREADS=2
    export CTEST_OUTPUT_ON_FAILURE=1
    # Verbose output to reassure Travis that stuff is happening
    make -C src/madness/$RUN_TEST -j2 test ARGS="-V"
fi