forked from equinor/nex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 1.66 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
66
67
68
69
70
71
72
73
74
75
76
77
language: python
env:
global:
- PLAT=x86_64
- UNICODE_WIDTH=32
- MB_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
- SCAN=""
addons:
apt:
packages:
- liblapack-dev
os:
- linux
- osx
compiler:
- gcc
- clang
services: docker
sudo: required
python:
- 2.7
- 3.6
matrix:
fast_finish: true
exclude:
- os: osx
include:
- os: linux
compiler: clang
env: SCAN="scan-build --status-bugs"
- os: osx
language: generic
python: 2.7
env: MB_PYTHON_VERSION=2.7
- os: osx
language: generic
python: 3.6
env: MB_PYTHON_VERSION=3.6
before_install:
- unset -f pushd
- unset -f popd
- source external/multibuild/common_utils.sh
- source external/multibuild/travis_steps.sh
- before_install
install:
- export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python${MB_PYTHON_VERSION}/site-packages
- export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python${MB_PYTHON_VERSION}/dist-packages
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
- easy_install --upgrade pip
- pip install setuptools
- pip install -r requirements.txt
- git clone --recursive https://github.com/Statoil/libecl.git
- mkdir libecl/build
- pushd libecl/build
- pip install -r ../requirements.txt
- cmake .. -DBUILD_SHARED_LIBS=ON
-DPYTHON_EXECUTABLE=`which python`
-DENABLE_PYTHON=ON
- sudo make install
- popd
script:
- mkdir build
- pushd build
- $SCAN cmake .. -DPYTHON_EXECUTABLE=`which python`
- make
- ctest --output-on-failure -VV