forked from turbinesFoam/turbinesFoam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.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
52
# Travis CI setup for turbinesFoam
sudo: required
dist: focal
language: cpp
env:
- OF_VERS=7 INSTALL_OPTS=""
- OF_VERS=8 INSTALL_OPTS=""
- OF_VERS=2106 INSTALL_OPTS="-default"
before_install:
- |
if [[ $OF_VERS -gt 2000 ]]
then
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
else
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
fi
- sudo apt-get update -qq
- sudo apt-get install -qq openfoam${OF_VERS}${INSTALL_OPTS}
- sudo apt-get install -qq vera++
# http://conda.pydata.org/docs/travis.html#the-travis-yml-file
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -q pandas numpy nose
install:
- |
if [[ $OF_VERS -gt 2000 ]]
then
source /usr/lib/openfoam/openfoam${OF_VERS}/etc/bashrc
else
source /opt/openfoam${OF_VERS}/etc/bashrc
fi
./Allwmake
script:
- |
if [[ $OF_VERS -gt 2000 ]]
then
source /usr/lib/openfoam/openfoam${OF_VERS}/etc/bashrc
else
source /opt/openfoam${OF_VERS}/etc/bashrc
fi
./Alltest
- ./foamStyleCheck/checkStyle