forked from TUM-I5/PUML2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 974 Bytes
/
.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
dist: bionic
language: cpp
comiler:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- |
sudo apt-get update
sudo apt-get install gcc-8 g++-8 gfortran-8 cmake
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 100
sudo apt-get install -qq openmpi-bin openmpi-common libopenmpi-dev hdf5-tools libhdf5-openmpi-100 libhdf5-openmpi-dev libmetis-dev libparmetis-dev
before_script:
- export CTEST_OUTPUT_ON_FAILURE=1
- export OMPI_MCA_rmaps_base_oversubscribe=1
- export OMPI_MCA_btl=vader,self
script:
- cd test/
- git clone https://github.com/TUM-I5/XdmfWriter.git
- cd XdmfWriter && git checkout dev && cd ..
- mkdir build && cd build && cmake .. && make
- mpirun -n 2 ./tests ../test_data/mesh.h5 out