forked from CoolProp/CoolProp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
144 lines (131 loc) · 3.95 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
notifications:
email:
on_success: never
on_failure: change
git:
depth: 5
#submodules_depth: 100
language:
- cpp
#os: linux
#dist: trusty
#
#compiler:
# - clang
# - gcc
#
#addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# - llvm-toolchain-trusty
# packages:
# - cmake
# - gcc-6
# - g++-6
# - clang-3.7
matrix:
include:
# Use this code to enable certain debug builds - for example for pull requests
#- compiler: clang
# branches:
# only:
# - issues/1820
# before_script:
# - cmake --version
# - echo "$CXX" && "$CXX" -v
# - mkdir -p build && pushd build
# - cmake .. -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_MY_MAIN=dev/Tickets/1820.cpp -DCMAKE_CXX_STANDARD=11
# - popd
# script:
# - cmake --build build --config Release
# - ./build/Main
- os: linux
dist: bionic
compiler: gcc
branches:
except:
- coverity_scan
before_script:
- cmake --version
- echo "$CXX" && "$CXX" -v
- mkdir -p build && pushd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_SHARED_LIBRARY=ON
- popd
script:
- cmake --build build --config Release
- os: linux
dist: bionic
compiler: clang
branches:
except:
- coverity_scan
before_script:
- cmake --version
- echo "$CXX" && "$CXX" -v
- mkdir -p build && pushd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_SHARED_LIBRARY=ON
- popd
script:
- cmake --build build --config Release
- os: osx
#osx_image: xcode8.3 # Xcode 8.3 OS X 10.12
branches:
except:
- coverity_scan
before_script:
- cmake --version
- echo "$CXX" && "$CXX" -v
- mkdir -p build && pushd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_SHARED_LIBRARY=ON
- popd
script:
- cmake --build build --config Release
- os: linux
dist: bionic
branches:
only:
- coverity_scan
# before_install:
# - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
addons:
coverity_scan:
project:
name: "CoolProp/CoolProp"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cmake . -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_SHARED_LIBRARY=ON"
build_command: "cmake --build . --config Release"
branch_pattern: coverity_scan
before_script: cmake . -DCMAKE_BUILD_TYPE=Release -DCOOLPROP_SHARED_LIBRARY=ON
script: cmake --build . --config Release
# build_command_prepend: "cmake . -DCOOLPROP_MY_MAIN=dev/coverity/main.cxx"
# build_command: "cmake --build . --target Main"
# branch_pattern: coverity_scan
# before_script: cmake . -DCOOLPROP_MY_MAIN=dev/coverity/main.cxx
# script: cmake --build . --target Main
#branches:
# only:
# - master
# - release
# - coverity_scan
# - travis_integration
# # Build all branches
# # - /.*/
env:
global:
- secure: "XGfICTnfFv9xpVDBbNwJIkXV0OZCAcOT46aeFYmODm3jl+ya60k0C91G9zlZ9fEYiQwAEBTO2Y/Ge0AMaoFqtu3H3vu7S5JjAbpMV3ZRDJqampScy550yPpziOuxvB6h23PZRfLOBVEsUGHnCO5rLb20iPM94XsHSBL3Smn2o9c="
#install:
# - if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
# - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
# before_script:
# # Check compiler and cmake versions
# - cmake --version; gcc -v; clang -v
# - echo "$CXX" && "$CXX" -v
# # Run your build commands next
# - mkdir build && pushd build
# - echo "${TRAVIS_BUILD_DIR}"
# - cmake .. -DCMAKE_BUILD_TYPE=Release # Same as "${TRAVIS_BUILD_DIR}"
# - popd
# script:
# - cmake --build build --config Release