-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
178 lines (148 loc) · 4.09 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
language: c
env:
global:
# Ubuntu version
# - LINUX_DIST=trusty
- MAKEFLAGS="-j 2"
- RUN_TESTS=true
- COVERAGE=false
matrix:
include:
- os: linux
# dist: trusty
sudo: true
compiler: gcc
addons:
apt:
update: true
packages:
- gcc
- g++
#- gcov-4.9
- clang
- python-yaml
- lcov
- libglib2.0-dev
- libgoogle-perftools-dev
- pkg-config
- os: osx
osx_image: xcode11.4
compiler: clang
homebrew:
update: true
packages:
- glib
- gcc
- pkg-config
- google-perftools
script:
############################################################################
# Build main and tests
############################################################################
- mkdir -p _build
- cd _build
- cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON ..
- make -j
# - make project1_coverage
- ctest
- sudo make install
- bash ../test/test_lib.sh
#after_success:
# - codecov -t c376990f-2ad6-4f7b-bbdb-5378a52e295c -X gcov
#language: python
#
## os:
## - linux
## - osx
#
##python:
## - "3.4"
## - "3.5"
## - "3.6"
## - "nightly"
#
#addons:
# apt:
## sources:
## - sourceline: 'deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse'
## - sourceline: 'deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse'
# packages:
# libglib2.0-dev
# python3-pip
# python3-matplotlib
# python3-dev
# git
# gcc
# g++
#
#before_install:
## - sudo apt-get -qq update
## - sudo apt-get install -y libglib2.0-dev python3-pip python3-matplotlib python3-dev git gcc g++
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install glib python3 openssl readline ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated pyenv || brew upgrade pyenv ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/Users/travis/.pyenv/shims:${PATH}" ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv-virtualenv venv; source venv/bin/activate ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m pip install -U pip ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m easy_install -U setuptools ; fi
#
#
## command to install dependencies
#install:
# - pip3 install --upgrade pip setuptools wheel
# - pip3 install -r requirements.txt
# - python3 setup.py build_ext -i
# - which python3
# - python3 --version
#
#matrix:
# include:
# - os: linux
# python: 3.4
# - os: linux
# python: 3.5
# - os: linux
# python: 3.6
# allow_failures:
# - os: linux
# python: "nightly"
## - os: osx
## language: generic
#
#
#
## command to run tests
#script: nosetests
# command to install dependencies
#install: "pip3 install -r requirements.txt; python3 setup.py build_ext -i"
# command to run tests
#script: nosetests
## using anchor to import sources into linux builds
#addons:
# apt: &apt
# sources:
# - ubuntu-toolchain-r-test
# important for allowed-to-fail matching
# see https://docs.travis-ci.com/user/customizing-the-build#Rows-that-are-Allowed-to-Fail
# travis currently does not support directly setting gcc/clang with versions
# (e.g. gcc-4.8) as value for the compiler key. So we will have to manually
# request these packages and use environment varibles to create the matrix.
#jobs:
# fast_finish: true
# include:
# - name: "gcc on Linux"
# compiler: gcc
#
# - os: osx
# osx_image: xcode11.4
# compiler: clang
#
# allow_failures:
# - os: osx
# osx_image: xcode11.4
# compiler: clang
#
#script:
# - ./ci/run.sh