forked from msoos/cryptominisat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
161 lines (129 loc) · 4.5 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
156
157
158
159
160
161
language: cpp
cache: ccache
branches:
only:
- master
- coverity_scan
compiler:
- gcc
- clang
os:
- linux
# - osx
dist: trusty
# not container-based
sudo: required
python:
- "2.7"
- "3.5"
env:
global:
# below is coveralls token
- secure: "fZqRStzy+aN3BPTRcc97+J4oidbIXcHlAQo2Sc25WGS1pV4+NOiM/gJeh+7WDfPmszXZBHdyyg/XPXeI86OMikXL7DaG53D/6Zq+qzVehyTlHi3sT93sDs53FbwAqa5F/dDf+z74VK7P+pQZkAr96ra8sU0Pz9nWr/8XhSpdZlE="
# below is coverity token
- secure: "WXFslB4aWOcCtMYnNlIYLkxi0aQ8R9ApMmV3fWlGN98gm2+5aaDKsRxpy9Q25ghQNgouS894klSqJhfB9Xa7SW389LHVor3FIYvYHZC0vSQQjFMg4/kUZg+t3HXhRt4254sxIJrTXSeF/3nOq1HMVIk4UanVUp7aihEyNcfJ6rk="
matrix:
- CMS_CONFIG=NORMAL
- CMS_CONFIG=NORMAL_PYTHON2
- CMS_CONFIG=LARGEMEM_GAUSS
- CMS_CONFIG=ONLY_SIMPLE
- CMS_CONFIG=STATS
- CMS_CONFIG=NOZLIB
- CMS_CONFIG=RELEASE
- CMS_CONFIG=NOSQLITE
- CMS_CONFIG=NOPYTHON
- CMS_CONFIG=SQLITE
- CMS_CONFIG=M4RI
- CMS_CONFIG=GAUSS
- CMS_CONFIG=COVERAGE
- CMS_CONFIG=SLOW_DEBUG
- CMS_CONFIG=INTREE_BUILD
- CMS_CONFIG=NOTEST
- CMS_CONFIG=STATIC
- CMS_CONFIG=ONLY_SIMPLE_STATIC
matrix:
exclude:
- os: osx
compiler: gcc
# COVERAGE scan should only run once
- compiler: clang
env: CMS_CONFIG=COVERAGE
- compiler: clang
env: CMS_CONFIG=STATS
- compiler: clang
env: CMS_CONFIG=SLOW_DEBUG
- compiler: clang
env: CMS_CONFIG=NOPYTHON
- compiler: clang
env: CMS_CONFIG=NOTEST
#####
- os: osx
env: CMS_CONFIG=STATS
- os: osx
env: CMS_CONFIG=SLOW_DEBUG
- os: osx
env: CMS_CONFIG=NOTEST
- os: osx
env: CMS_CONFIG=COVERAGE
- os: osx
env: CMS_CONFIG=NOSQLITE
- os: osx
env: CMS_CONFIG=NOZLIB
- os: osx
env: CMS_CONFIG=LARGEMEM_GAUSS
- os: osx
env: CMS_CONFIG=NOPYTHON
include:
# Covertiy scan should only run once
- os: linux
compiler: gcc
env: COVERITY_SCAN=1 CMS_CONFIG=NORMAL
allow_failures:
# Covertiy scan might fail
- env: COVERITY_SCAN=1 CMS_CONFIG=NORMAL
addons:
coverity_scan:
project:
name: "msoos/cryptominisat"
description: "Advanced SAT solver"
notification_email: [email protected]
build_command_prepend: "cmake ."
build_command: "make"
branch_pattern: coverity_scan
sonarcloud:
organization: "msoos-github"
token:
secure: "dtJVVMl23o7LVhjk4M3eGOc4e7NGaWQ/mRBLxOTkg1fsspi4drrzID24hD4YxTt2sYkwdxOLrKMuXdFs28L0Dc3K/2ktJW2vz+HzasDScIAaec2Mv0siT/O6PIBzT0BUo1tZrap4zQBGFziDpUFPBIR55OOI7OfKIh9fbtfuCwE="
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# we probably want to install python 3 though...
- if [[ ("$TRAVIS_OS_NAME" == "osx") && ("$CMS_CONFIG" != "NORMAL_PYTHON2") ]]; then brew upgrade python --universal; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo easy_install pip; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y --force-yes help2man; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y --force-yes python3-pip; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y --force-yes libboost-test-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y --force-yes cmake3; fi
install:
#cmake
#- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/travis-install-cmake.sh; fi
#coveralls
- if [[ "$CMS_CONFIG" == "COVERAGE" ]]; then ./scripts/travis-install-lcov.sh; fi
# lit
# NOTE we probably should NOT use 'sudo' because Travis uses virtualenvs
# curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py -o get-pip.py; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo python get-pip.py; fi
- if [[ ("$TRAVIS_OS_NAME" == "linux") && ("$CMS_CONFIG" != "NORMAL_PYTHON2") ]]; then sudo -H pip3 install --upgrade pip; pip3 install --user lit; fi
- if [[ ("$TRAVIS_OS_NAME" == "linux") && ("$CMS_CONFIG" == "NORMAL_PYTHON2") ]]; then sudo -H pip install --upgrade pip; pip install --user lit; fi
- echo $PATH
- export PATH=$PATH:/Users/travis/Library/Python/2.7/bin
- lit --version
- which lit
#submodules
- git submodule init
- git submodule update
#bulid dir
- mkdir -p build
script:
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./scripts/travis-cmake.sh ; fi