-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
126 lines (118 loc) · 2.73 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
language: cpp
dist: bionic
branches:
only:
- master
- /^v\d+\.\d+\.\d+$/
addons:
apt:
packages:
- python3.6-dev
- python3-setuptools
- python3-pip
jobs:
fast_finish: true
include:
- name: coverage and documentation
os: linux
compiler: gcc
env:
- COVERAGE: ON
- BUILD_TYPE: Debug
- ASYNC: ON
- BUILD_DOC: ON
- PYTHON_EXECUTABLE: /usr/bin/python3.6m
- SHARED_LIBS: ON
- name: linux release static
os: linux
compiler: gcc
env:
- COVERAGE: OFF
- BUILD_TYPE: Release
- ASYNC: ON
- PYTHON_EXECUTABLE: /usr/bin/python3.6m
- SHARED_LIBS: OFF
- name: linux release static
os: linux
compiler: gcc
env:
- COVERAGE: OFF
- BUILD_TYPE: Release
- ASYNC: ON
- PYTHON_EXECUTABLE: /usr/bin/python3.6m
- SHARED_LIBS: ON
- name: linux clang
os: linux
compiler: clang
env:
- COVERAGE: OFF
- BUILD_TYPE: Release
- ASYNC: ON
- PYTHON_EXECUTABLE: /usr/bin/python3.6m
- SHARED_LIBS: ON
- name: osx clang
os: osx
compiler: clang
osx_image: xcode10.1
env:
- COVERAGE: OFF
- BUILD_TYPE: Release
- ASYNC: OFF
- PYTHON_EXECUTABLE: /usr/local/bin/python
- SHARED_LIBS: ON
- name: osx deploy
os: osx
env:
- DEPLOY_MACOSX_WHEEL: ON
- COVERAGE: OFF
- BUILD_DOC: OFF
- name: MSVC 64-bit Shared
os: windows
env:
- SHARED_LIBS: ON
- name: MSVC 64-bit Static
os: windows
env:
- SHARED_LIBS: OFF
before_install:
- |
if [[ "${COVERAGE}" == "true" ]]; then
pip3 install --user cpp-coveralls
fi
script:
- ./scripts/travis/build.sh
- |
if [[ "${DEPLOY_MACOSX_WHEEL}" == "true" ]]; then
./scripts/travis/macpython-build-wheels.sh 3.6 3.7 3.8
fi
after_success:
- cd $TRAVIS_BUILD_DIR
- |
if [[ "${COVERAGE}" == "true" ]]; then
coveralls --gcov gcov \
-e build/chemfiles \
-e build/chemfiles_build \
-e build/CHEMFILES-prefix \
-e build/CMakeFiles \
-e progs -E '.*external.*' --gcov-options '\-lp' > /dev/null 2> /dev/null
fi
- |
if [[ "$BUILD_DOC" == "true" ]]; then
./scripts/build-doc.sh
fi
deploy:
- provider: pages
cleanup: false
skip_cleanup: true
token: $GH_TOKEN
local_dir: build/gh-pages
on:
branch: master
condition: $BUILD_DOC == true
- provider: script
script: ./scripts/upload_pypi.sh
cleanup: false
skip_cleanup: true
on:
tags: true
condition: $DEPLOY_MACOSX_WHEEL == true