forked from KeyviDev/keyvi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
119 lines (105 loc) · 3.79 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
##
#
# 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=keyvidev/keyvi-manylinux-builder
- BUILD_TYPE=manylinux PYTHON_VERSION=34 DOCKER_IMAGE=keyvidev/keyvi-manylinux-builder
- BUILD_TYPE=manylinux PYTHON_VERSION=35 DOCKER_IMAGE=keyvidev/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='KeyviDev/keyvi'
- GH_REPO_REF='github.com/KeyviDev/keyvi.git'
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
- clang-format-3.8
script:
- if [ "$BUILD_TYPE" == "linux" ]; then source ./travis/build_linux.sh ; fi
- if [ "$BUILD_TYPE" == "manylinux" ]; then source ./travis/build_manylinux_package.sh ; fi
- if [ "$BUILD_TYPE" == "sdist" ]; then source ./travis/build_sdist_package.sh ; fi
- if [ "$BUILD_TYPE" == "osx" ]; then source ./travis/build_osx_package.sh ; fi
after_success:
- if [ "$CC" = "gcc-4.8" ] && [ "$CONF" = "coverage" ] && [ "$TRAVIS_REPO_SLUG" == "$GITHUB_REPO" ]; then ./travis/coverage.sh ; fi
- if [ "$CC" = "gcc-4.8" ] && [ "$CONF" = "coverage" ]; then ./travis/style.sh ; fi
- if [ "$BUILD_TYPE" == "doc" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then source ./travis/build_doc.sh ; fi
deploy:
provider: script
script: travis/upload_packages.sh
skip_cleanup: true
on:
tags: true