This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (60 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
dist: trusty
sudo: required
language: python
virtualenv:
system_site_packages: false
addons:
apt:
packages:
- python-pip
cache:
ccache: true
pip: true
directories:
- "$HOME/.ccache"
- "$HOME/simphony"
- "$HOME/debcache"
before_install:
- ccache -s
- export PATH=/usr/lib/ccache:${PATH}
- pip install --upgrade pip
- deactivate
- sudo apt-get update -qq
- sudo apt-get install ccache
- ccache -s
- export PATH=/usr/lib/ccache:${PATH}
- git clone --branch=v0.3 https://github.com/simphony/simphony-framework.git $HOME/simphony-framework
- pushd $HOME/simphony-framework
- sudo make base
- if test ! -e $HOME/debcache/openfoam231_0-1_amd64.deb; then wget http://dl.openfoam.org/ubuntu/dists/trusty/main/binary-amd64/openfoam231_0-1_amd64.deb -O $HOME/debcache/openfoam231_0-1_amd64.deb; fi
- sudo cp $HOME/debcache/openfoam231_0-1_amd64.deb /var/cache/apt/archives/
- sudo make apt-openfoam-deps
- sudo make apt-simphony-deps
- sudo make apt-lammps-deps
- sudo make fix-pip
- sudo make apt-mayavi-deps
- sudo ln -s ccache /usr/local/bin/mpic++
- make simphony-env
- make lammps
- source ~/simphony/bin/activate
# overwrites travis cache that apparently is invalid. Should go away after we merge
- pip install --no-cache-dir tables==3.2.3.1
- make simphony-common
- make simphony-mayavi
- make simphony-openfoam
- make simphony-liggghts
- make simphony-lammps
- popd
install:
- pip install -r requirements.txt
- python setup.py install
before_script:
- pip install --upgrade -r dev_requirements.txt
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
script:
- flake8 .
- coverage run -m unittest discover
after_success:
- codecov