-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.travis.yml
118 lines (104 loc) · 4.23 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
##
#
# Travis CI script for keyvi
#
language: cpp
compiler:
# disable, does not build with current msgpack - clang
- gcc
python:
- 2.7
sudo: required
services:
- docker
env:
matrix:
- BUILD_TYPE=linux PYTHON_VERSION=27 CONF=debug ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=34 CONF=debug ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=35 CONF=debug ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=pypy2 CONF=debug ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=27 CONF=release ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=34 CONF=release ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=35 CONF=release ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=pypy2 CONF=release ARCH=x86_64
- BUILD_TYPE=linux PYTHON_VERSION=27 CONF=coverage ARCH=x86_64
- BUILD_TYPE=manylinux PYTHON_VERSION=27 DOCKER_IMAGE=cliqz/keyvi-manylinux-builder
- BUILD_TYPE=manylinux PYTHON_VERSION=34 DOCKER_IMAGE=cliqz/keyvi-manylinux-builder
- BUILD_TYPE=manylinux PYTHON_VERSION=35 DOCKER_IMAGE=cliqz/keyvi-manylinux-builder
- BUILD_TYPE=sdist PYTHON_VERSION=27
- BUILD_TYPE=doc
global:
- GH_REPO_NAME='keyvi'
- DOXYFILE="$TRAVIS_BUILD_DIR/keyvi/keyvi.Doxyfile"
- GITHUB_REPO='cliqz-oss/keyvi'
- GH_REPO_REF='github.com/cliqz-oss/keyvi.git'
- secure: "cy3LYIeuSxIdDt4GArpStoawmlEXy7oVX/Z72hwcXVj6EgQ8za16GaayQCLbHy9Hlm0K42QmWg4s7iOm/QzKBlZAwvHMktmHIVoovXe+i83bRVclMr/zvzhEeSyCy4xbBEBT8qt4p0dwX4hOF6cfy+rpNsI+CMBbGgMSS/MZHm/FmF5fKqcZBJfZfEPOqOukID4NPirDlZ8Jmg8JR1K722+xXvwbSif0a6wJ3p517JjYJxO8a7AzdXJMXC3sJmpsSCBwp+NG9BrwJ/MgQFHKUEhPoPFOEI7P57rH9Cax8+y9j7ukwlB36Ae5ApddcXYbQMOtpoA+DvR5JbsbYWi4/T6qUntYmpRy5gPVD/IwIAldEt3iERswjWFHgUjN+JaJ6YqQHl5ks++NZbB6W8eqP2Id1Oa669b6uxFn62Ln43TcvY4bapJEscj7goReiQGjwIWjBxphP/eJaPae642HnpBijPjAG+uA8IyO2nuY/+xULMiNXDFGVmBC5VfYp95Y71ZlUpfUv6u96mXc3ruWmDRzGNNgNXmzIGfD5bxn2uxMykOW6ubG4mnxOT/qMia8yrYsPYdBsvc1u2XWHAUUrHPVr9HmFo68y3AfuXwXH2Eb0fGTxNmaihabcqoBdm6HRK3aRLqXweBI2xXyOY8Tf07hUy+G7qkg2ZrsEgwWg+k=" # COVERALLS_REPO_TOKEN
matrix:
include:
- os: osx
osx_image: xcode7.3
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=27
- os: osx
osx_image: xcode7.3
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=34
- os: osx
osx_image: xcode7.3
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=35
# temporarily disabled pypy builds on osx
# till https://bitbucket.org/pypy/pypy/issues/2626/invalid-conversion-from-const-char-to-char is released
# - os: osx
# osx_image: xcode7.3
# compiler: clang
# env: BUILD_TYPE=osx PYTHON_VERSION=pypy2
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./travis/setup_osx.sh ; fi
- source ./travis/setup_pyenv.sh
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$DOCKER_IMAGE" != "" ]; then docker pull $DOCKER_IMAGE ; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
# disable, LLVM broken for now - llvm-toolchain-precise-3.6
- boost-latest
packages:
- gcc-4.8
- g++-4.8
# disabled due to https://github.com/travis-ci/travis-ci/issues/6120 - clang
- valgrind
- cmake
- libboost-thread1.55-dev
- libboost-system1.55-dev
- libboost-test1.55-dev
- libboost1.55-dev
- libboost-date-time1.55-dev
- libboost-regex1.55-dev
- libboost-filesystem1.55-dev
- libboost-program-options1.55-dev
- libboost-iostreams1.55-dev
- libsnappy-dev
- zlib1g-dev
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
- libstdc++-4.8-dev
script:
- if [ "$BUILD_TYPE" == "linux" ]; then ./travis/build_linux.sh ; fi
- if [ "$BUILD_TYPE" == "manylinux" ]; then ./travis/build_manylinux_package.sh ; fi
- if [ "$BUILD_TYPE" == "sdist" ]; then ./travis/build_sdist_package.sh ; fi
- if [ "$BUILD_TYPE" == "osx" ]; then ./travis/build_osx_package.sh ; fi
after_success:
- if [ "$CC" = "gcc-4.8" ] && [ "$CONF" = "coverage" ]; then ./travis/coverage.sh ; fi
- if [ "$BUILD_TYPE" == "doc" ]; then ./travis/build_doc.sh ; fi
deploy:
provider: script
script: travis/upload_packages.sh
skip_cleanup: true
on:
tags: true