forked from SCOREC/core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (47 loc) · 1.46 KB
/
.travis.yml
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
dist: trusty
language: cpp
compiler: gcc
sudo: true
branches:
only:
- develop
addons:
apt:
update: true
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-7
- g++-7
- mpich
- libmpich-dev
- clang
before_install:
- export DEVROOT=/home/travis/build
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- pwd
- export NP=`grep -c ^processor /proc/cpuinfo`
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --config gcc
- cd ${DEVROOT}
- wget https://cmake.org/files/v3.12/cmake-3.12.1.tar.gz
- tar xzf cmake-3.12.1.tar.gz
- cd ${DEVROOT}/cmake-3.12.1
- ./bootstrap
- make -j ${NP} && sudo make install
- which cmake
- cmake --version
- export PATH=/usr/local/bin:${PATH}
- cd ${DEVROOT}
- git clone https://github.com/SCOREC/pumi-meshes.git meshes
script:
- cd ${DEVROOT}/SCOREC/core
- mkdir -p ${DEVROOT}/SCOREC/core/build
- cd build
- cmake .. -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=${DEVROOT}/install/core -DIS_TESTING=ON -DBUILD_EXES=ON -DCMAKE_BUILD_TYPE=Release -DMESHES=${DEVROOT}/meshes
- make -j ${NP}
- ctest
- cmake .. -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=${DEVROOT}/install/core -DIS_TESTING=ON -DBUILD_EXES=ON -DCMAKE_BUILD_TYPE=Debug -DMESHES=${DEVROOT}/meshes
- make -j ${NP}
- ctest