build_and_test.sh 379 字节
Newer Older
Y
Yu Yang 已提交
1
#!/bin/bash
Y
Yu Yang 已提交
2
source ./common.sh
L
liaogang 已提交
3

Y
Yu Yang 已提交
4
NPROC=1
H
Helin Wang 已提交
5 6 7
export PYTHONPATH=/opt/python/2.7.12/lib/python2.7/site-packages
export PYTHONHOME=/opt/python/2.7.12
export PATH=/opt/python/2.7.12/bin:${PATH}
8
cmake .. -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran-4.8 -DON_TRAVIS=ON -DWITH_COVERAGE=ON -DCOVERALLS_UPLOAD=ON ${EXTRA_CMAKE_OPTS}
H
Helin Wang 已提交
9 10 11 12
NRPOC=`nproc`
make -j $NPROC
make coveralls
sudo make install