forked from equinor/dlisio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
155 lines (143 loc) · 4.57 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
language: python
os: linux
dist: xenial
# compiler directive is unused as specified language is python
compiler: gcc
services: docker
env:
global:
- UNICODE_WIDTH=32
- PLAT=x86_64
- MB_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION
- VERSION=$(echo $TRAVIS_TAG | sed s/v//)
addons:
apt:
sources:
- george-edison55-precise-backports # cmake 3
packages:
- cmake
- cmake-data
jobs:
fast_finish: true
include:
- python: 3.6
- python: 3.7
- python: 3.8
- python: 3.9
env: MB_ML_VER=2010
- os: linux
compiler: clang
python: 3.8
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- SCAN="scan-build --status-bugs"
- SOURCEDEPLOY=1
- WERROR="-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-Werror"
- MKDOC="-DBUILD_DOC=ON -DSPHINX_ARGS=-WT"
- os: osx
language: generic
python: 3.6
env:
- MB_PYTHON_VERSION=3.6
- MACOSX_DEPLOYMENT_TARGET=10.9
- os: osx
language: generic
python: 3.7
env:
- MB_PYTHON_VERSION=3.7
- MACOSX_DEPLOYMENT_TARGET=10.9
- os: osx
language: generic
python: 3.8
env:
- MB_PYTHON_VERSION=3.8
- MACOSX_DEPLOYMENT_TARGET=10.9
- os: osx
language: generic
python: 3.9
env:
- MB_PYTHON_VERSION=3.9
- MACOSX_DEPLOYMENT_TARGET=10.9
- os: linux
arch: s390x
name: bigendian
language: generic
before_install: skip
install: skip
before_script: skip
deploy:
script:
- docker build -t dlisio -f .travis/bigendian/Dockerfile .
before_install:
- eval "${MATRIX_EVAL}"
- unset -f pushd
- unset -f popd
- git clone https://github.com/fmtlib/fmt.git
- mkdir fmt/build
- pushd fmt/build
- cmake -DFMT_TEST=OFF -DFMT_DOC=OFF ..
- make
- sudo make install
- popd
- git clone https://github.com/equinor/layered-file-protocols.git
- mkdir layered-file-protocols/build
- pushd layered-file-protocols/build
- cmake -DBUILD_SHARED_LIBS=ON
-DLFP_FMT_HEADER_ONLY=ON
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_NAME_DIR=/usr/local/lib
-DBUILD_TESTING=OFF ..
- make
- sudo make install
- popd
- git clone https://github.com/mpark/variant.git
- mkdir variant/build && pushd variant/build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make
- sudo make install
- popd
- git clone https://github.com/matthew-brett/multibuild
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- pip install --upgrade pip
- pip install --upgrade -r python/requirements-dev.txt
- bandit -c bandit.yml -r python/
before_script:
- mkdir build
- pushd build
- $SCAN cmake -DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_NAME_DIR=/usr/local/lib
$MKDOC
${WERROR}
..
- popd
script:
- pushd build
- make
- ctest --verbose
- sudo make install
- popd
# install works, so remove the _skbuild because it having root permissions
# from make install breaks build_wheel
- sudo rm -rf python/_skbuild
- build_wheel python $PLAT
- install_run $PLAT
- mv wheelhouse python/dist
before_deploy:
- pushd python
after_deploy:
- popd
deploy:
- provider: pypi
skip_cleanup: true
skip_upload_docs: true
user: statoil-travis
distributions: --skip-cmake build
password:
secure: NKjQaDPPCDE8C7f1c3rNdVInJUBkp1DegubXyzbNwLz0k/JiQv5IoTKh7ehJnZoOaHaFa8zTMSZYT9VypgvRp2sziCdI/piEASCTbv5lJAZ1ELE2aSiVeSCuBbq/3BFp5YqfuqPjrIy32xvlbCU2rwhRNo4eVrfop8pYdMZeWSAvn+FDSNaVPhUs0E4HKI57ROkjDJvnMmRQpcOYQslxUgGth7F7F2kGxP0Z+L0DmsAnxPYjLzjNe3DzD9EMfegPG5il+J7GmKJrLNNhGyIET+cxKKaODgjVSqaiZ5tgiNjAALxZMiZz0KyYclo/TOiKvuimWjSruDAiSY2NsacF6SW83qkfGZHCURL/nrHnyTEhzY3/qRN2HuSeE51BTFTrw306HzdCHDp8E7nlLz44/F3X+UaL8OinuZvj5IaaJSX9Q0eU10dxvH5ezgZa0CgAIK3N/bvjSMEFJhkG5/MlRk4pmo4HsjX8EduskJQMV+qc0pE4JHMZkRqlFY+LjkyEgw73iIqrpXBkSnkSM8Q4t7sECyTup7nhMbbkl1MehT+uKC+9dy1cZw2AMsRcs+WLzSOV8jU6IY1Iwh/q+N8q6Y08ek6lmGXGMKPzPQCsNQ6B2NpJ0zb6PRqMa4d5HS+b+ar/B4nMrltzRzP8bRJYrmx1cQXnJ1gLwgpsBhfEnf0=
on:
tags: true
condition: -z $SOURCEDEPLOY