forked from hyperdeal/hyperdeal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (28 loc) · 1.05 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
language: cpp
os: linux
notifications:
email: false
# webhooks: https://www.travisbuddy.com/
addons:
apt:
packages:
- docker-ce
services:
- docker
matrix:
include:
- name: Compile and ctest
stage: build
env: STEP=compile_and_test
before_script:
- if [ "$STEP" = "compile_and_test" ]; then
docker pull dealii/dealii:master-focal;
fi
script:
- if [ "$STEP" = "compile_and_test" ]; then
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker run -i -t dealii/dealii:master-focal /bin/sh -c "git clone https://github.com/$TRAVIS_REPO_SLUG hyperdeal && cd hyperdeal && git checkout $TRAVIS_BRANCH && mkdir build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && make -j2 && ctest -V";
else
docker run -i -t dealii/dealii:master-focal /bin/sh -c "git clone https://github.com/$TRAVIS_PULL_REQUEST_SLUG hyperdeal && cd hyperdeal && git checkout $TRAVIS_PULL_REQUEST_BRANCH && mkdir build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && make -j2 && ctest -V";
fi
fi