-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sh
executable file
·56 lines (42 loc) · 984 Bytes
/
build.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# if the following commands error, cause the script to error
set -e
if [[ -z "${CPU}" ]]; then
export CPU=$(python3 -c 'import multiprocessing as mp; print(mp.cpu_count())')
fi
#if [[ -z "${R_LIBS_USER}" ]]; then
# mkdir -p $HOME/R/library
# export R_LIBS_USER=$HOME/R/library
#fi
export PROJECT=$(pwd)
export BOOST=boost_1_70_0
cd $PROJECT
./tools/dependencies.sh
# build cpp
cmake .
cd cmagi
make -j $CPU
cd $PROJECT
# build python
#cd pymagi
#pip3 install -r pip/requirements.txt
#cmake . && make -j $CPU
#python3 -c "import pymagi"
#if [[ "$1" != "--skip-tests" ]]; then
# nosetests
#fi
#cd $PROJECT
# build R
#export CODECOV_TOKEN="7b481576-694c-4591-8370-64f61df55bdc"
#cd rmagi
#./inst/r_build.sh
#if [[ "$1" != "--skip-tests" ]]; then
# Rscript -e 'devtools::test()'
# Rscript -e 'testthat::test_package("magi")'
# Rscript -e 'covr::codecov(path = ".")'
#fi
#cd $PROJECT
# build MATLAB
#cd matlabmagi
#./matlab_build.sh
#cd $PROJECT