File: .travis.yml

package info (click to toggle)
openturns 1.11-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,144 kB
  • sloc: cpp: 202,072; python: 31,104; ansic: 8,352; makefile: 358; sh: 279; yacc: 123; lex: 43
file content (138 lines) | stat: -rw-r--r-- 5,202 bytes parent folder | download
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
language: cpp
dist: trusty
sudo: false

addons:
  apt:
    packages:
    - cmake
    - bison
    - flex
    - swig
    - libmuparser-dev
    - liblapack-dev
    - libxml2-dev
    - libboost-math-dev
    - libtbb-dev
    - r-base-core
    - python-dev
    - python-scipy
    - python-matplotlib

matrix:
  include:
    - os: linux
      compiler: clang
      env: BUILD_PYTHON=ON
    - os: linux
      compiler: clang
      env: BUILD_PYTHON=OFF
    - os: osx
      compiler: clang

before_install:
  - if test "$TRAVIS_OS_NAME" = "osx"; then
        brew update &&
        brew cask uninstall oclint &&
        brew install swig muparser R openblas bison flex &&
        export HOMEBREW_PREFIX=`brew --prefix`;
    fi

install:
# use system python
  - export PATH=/usr/bin:$PATH
# use latest hmat-oss
  - git clone https://github.com/jeromerobert/hmat-oss.git
  - pushd hmat-oss
  - if test "$TRAVIS_OS_NAME" = "linux"; then
       cmake -DCMAKE_INSTALL_PREFIX=~/.local
             -DHMAT_DISABLE_OPENMP=OFF . ;
    fi
  - if test "$TRAVIS_OS_NAME" = "osx"; then
        cmake -DCMAKE_INSTALL_PREFIX=~/.local
              -DCMAKE_MACOSX_RPATH=ON
              -DCBLAS_LIBRARIES=$HOMEBREW_PREFIX/opt/openblas/lib/libopenblas.dylib
              -DBLAS_LIBRARIES=$HOMEBREW_PREFIX/opt/openblas/lib/libopenblas.dylib
              -DLAPACK_LIBRARIES=$HOMEBREW_PREFIX/opt/openblas/lib/libopenblas.dylib
              -DCBLAS_INCLUDE_DIRS=$HOMEBREW_PREFIX/opt/openblas/include . ;
    fi
  - make install -j4
  - popd
# use latest nlopt
  - git clone https://github.com/stevengj/nlopt.git
  - pushd nlopt
  - cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local -DINSTALL_LIB_DIR=$HOME/.local/lib -DBUILD_SHARED_LIBS:BOOL=ON -DNLOPT_PYTHON=OFF -DNLOPT_OCTAVE=OFF -DNLOPT_GUILE=OFF -DCMAKE_MACOSX_RPATH=ON .
  - make install -j4
  - popd

# use tbb from sources for osx (not brew)
  - if test "$TRAVIS_OS_NAME" = "osx"; then
       git clone https://github.com/01org/tbb.git &&
       pushd tbb &&
       git checkout 2017_U5 &&
       make -j4 cfg=release stdlib=libc++ &&
       install -d $HOME/.local/lib &&
       install -d $HOME/.local/include &&
       cp `find . -name "*lib*" | grep tbb | grep release` $HOME/.local/lib &&
       cp -r ./include/tbb $HOME/.local/include &&
       popd;
   fi

before_script:
  - R CMD INSTALL --library=$PWD utils/rot_1.4.6.tar.gz
  - export R_LIBS=$PWD

script:
  - if test "$TRAVIS_OS_NAME" = "linux"; then
        cmake -DCMAKE_INSTALL_PREFIX=~/.local
              -DUSE_SPHINX=OFF
              -DHMAT_DIR=~/.local/lib/cmake/hmat
              -DNLOPT_LIBRARY=~/.local/lib/libnlopt.so
              -DNLOPT_INCLUDE_DIR=~/.local/include
              -DUSE_COTIRE=ON
              -DCOTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES="-j2"
              -DBUILD_PYTHON=${BUILD_PYTHON}
              . &&
        make install -j2;
    fi
  - if test "$TRAVIS_OS_NAME" = "osx"; then
        cmake -DCMAKE_INSTALL_PREFIX=~/.local
              -DCMAKE_MACOSX_RPATH=ON
              -DHMAT_DIR=~/.local/lib/cmake/hmat
              -DLAPACK_LIBRARIES="-framework Accelerate"
              -DNLOPT_LIBRARY=~/.local/lib/libnlopt.dylib
              -DNLOPT_INCLUDE_DIR=~/.local/include
              -DUSE_SPHINX=OFF
              -DBISON_EXECUTABLE=/usr/local/opt/bison/bin/bison
              -DFLEX_EXECUTABLE=/usr/local/opt/flex/bin/flex
              -DFLEX_INCLUDE_DIR=/usr/local/opt/flex/include
              -DPYTHON_EXECUTABLE=/usr/bin/python
              -DPYTHON_INCLUDE_DIR=/usr/include/python2.7
              -DPYTHON_LIBRARY=/usr/lib/libpython2.7.dylib
              -DUSE_COTIRE=ON
              -DCOTIRE_MAXIMUM_NUMBER_OF_UNITY_INCLUDES="-j4"
              . &&
        make install -j4;
    fi
  - if test "${BUILD_PYTHON}" = "OFF"; then
        make tests -j2 && ctest -R cppcheck -j2 --output-on-failure --timeout 100;
    else
        ctest -R pyinstallcheck -j4 --output-on-failure --timeout 100;
    fi

after_success:
  - exit 0
  - test "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_OS_NAME" = "linux" || exit 0
  - git clone https://${GH_TOKEN}@github.com/openturns/openturns.github.io.git
  - cp -r ~/.local/share/openturns/doc/html/* openturns.github.io
  - cd openturns.github.io
  - touch .nojekyll
  - git config user.email "support@travis-ci.com"
  - git config user.name "Travis CI"
  - git add -A .
  - git commit -a -m "Travis build $TRAVIS_BUILD_NUMBER"
  - git push --quiet origin master > /dev/null 2>&1

env:
  global:
    secure: azF2AfkEALFgd16Xh0XcAglAtExD5BhsMSPOcHFUftgDGrlsgsjD4p505UxrAOYYX5Exchne5D9pSV8gFlxKl5OIoVkJhSkvLRKANJKzdM95TnUqeJy6zplcEOvDPKdww37mKzJy/a9MduOqORqMeVErvpiEpYwrdiH1GUBHrvAp4NUSPhR5Ea/6d3TdOmaF1j0N8Bb66ZHn9SGThLM0ZEHk9iXHB5E9U0Y8dq7eDifD20hWGfIRiIksyWRyP+a/8WAnqf0mYPPkP1qEssexCHlF3tB2ZVyXBF84/laujOasWu1uApjjEhJADE6E3Rnv7BYMB6pvmiVMF/CZ07rflqgI5MjnYplg8ZShS//UuYUlGi7NwKztMob/5GUjp6PHYBbc0t1sjgqzxJhuN80Km51M7n4zvjQs7EyHeu61BxWQe0NwpKN17OavUucYL6yN9R3L/JLEg9EJnKFNo+CXnzMH28luCn1SgfNU9iuk3B4Lwa4IY6bm0lAHm/WvHIOfQFNuqzH/1QtY9dM0iLCl8IcvO7buYkmEip9i+XdSn7HURAjmUsStonwGBDSONQgiuSOJE8GUaPCOpr5+tDrTa/TxWr3y1xMv1uORcWMp4ulm7XGrjSxDsfCRhPx56AjWA9uf+xbnnYApHlyoYGETEsff3RbH91FBriuHAZVH5Dw=