forked from ImperialCollegeLondon/sharpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (55 loc) · 1.8 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
language: python
python:
- "3.6"
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- gfortran-7
before_install:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-7 /usr/bin/g++
- sudo ln -s /usr/bin/gfortran-7 /usr/bin/gfortran
- gfortran --version
- 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 init bash
- hash -r
- export QT_QPA_PLATFORM='offscreen'
- conda env create -f utils/environment_linux.yml
- source activate sharpy_env
install:
- echo $(pwd)
- echo $TRAVIS_BRANCH
- cd ../
- git clone https://github.com/imperialcollegelondon/xbeam
- cd xbeam
- export exists=`git show-ref refs/remotes/origin/$TRAVIS_BRANCH`
- if [ -n "$exists" ]; then export LIBS_BRANCH=$TRAVIS_BRANCH; else export LIBS_BRANCH=master; fi
- echo $LIBS_BRANCH
- git checkout $LIBS_BRANCH
- export LAPACK_LIB_DIR=$(conda info --json | python -c "import sys, json; print(json.load(sys.stdin)['active_prefix'])")/lib
- make install
- cd ../
- git clone --branch=$LIBS_BRANCH https://github.com/imperialcollegelondon/uvlm
- cd uvlm
- export PREFIX=$(conda info --json | python -c "import sys, json; print(json.load(sys.stdin)['active_prefix'])")
- export EIGEN3_INCLUDE_DIR=$PREFIX/include/eigen3
- export MKL_ROOT=$PREFIX
- make
- cp lib/* ../sharpy/lib
- cd ../sharpy
- git fetch -t
- source bin/sharpy_vars.sh
script:
- coverage run -m unittest discover
after_success:
- bash <(curl -s https://codecov.io/bash)