forked from KeyviDev/keyvi-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (86 loc) · 3.34 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
##
#
# Travis CI script for keyvi-server
#
language: cpp
compiler:
- gcc
python:
- 3.5
sudo: required
services:
- docker
env:
matrix:
- BUILD_TYPE=linux DOCKER_IMAGE=keyvidev/ubuntu-builder CONF=release
- BUILD_TYPE=linux DOCKER_IMAGE=keyvidev/ubuntu-builder CONF=debug
- BUILD_TYPE=python DOCKER_IMAGE=keyvidev/ubuntu-builder PYTHON_VERSION=3.5.7
- BUILD_TYPE=python DOCKER_IMAGE=keyvidev/ubuntu-builder PYTHON_VERSION=3.6.9
- BUILD_TYPE=python DOCKER_IMAGE=keyvidev/ubuntu-builder PYTHON_VERSION=3.7.4
- BUILD_TYPE=python DOCKER_IMAGE=keyvidev/ubuntu-builder PYTHON_VERSION=3.8.0
- BUILD_TYPE=python DOCKER_IMAGE=keyvidev/ubuntu-builder PYTHON_VERSION=pypy2.7-7.2.0
- BUILD_TYPE=sdist DOCKER_IMAGE=keyvidev/ubuntu-builder
- BUILD_TYPE=manylinux DOCKER_IMAGE=keyvidev/manylinux-builder PYTHON_PATH=cp35-cp35m
#- BUILD_TYPE=manylinux DOCKER_IMAGE=keyvidev/manylinux-builder PYTHON_PATH=cp36-cp36m
#- BUILD_TYPE=manylinux DOCKER_IMAGE=keyvidev/manylinux-builder PYTHON_PATH=cp37-cp37m
#- BUILD_TYPE=manylinux DOCKER_IMAGE=keyvidev/manylinux-builder PYTHON_PATH=cp38-cp38
- BUILD_TYPE=style DOCKER_IMAGE=keyvidev/ubuntu-builder
global:
- GITHUB_REPO='KeyviDev/keyvi-server'
matrix:
include:
- os: osx
osx_image: xcode9.4
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=3.5.7
- os: osx
osx_image: xcode9.4
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=3.6.9
- os: osx
osx_image: xcode9.4
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=3.7.4
- os: osx
osx_image: xcode9.4
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=3.8.0
- os: osx
osx_image: xcode9.4
compiler: clang
env: BUILD_TYPE=osx PYTHON_VERSION=pypy2.7-6.0.0
addons:
homebrew:
packages:
- zlib
- snappy
- openssl
- gnu-getopt
- gflags
- leveldb
- protobuf
- gperftools
- pyenv
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source ./travis/setup_osx.sh ; fi
install:
- if [ "$DOCKER_IMAGE" != "" ]; then docker pull $DOCKER_IMAGE ; fi
script:
- if [ "$BUILD_TYPE" == "linux" ]; then docker run --rm -v `pwd`:/io -e CONF $DOCKER_IMAGE /io/travis/build_linux.sh ; fi
- if [ "$BUILD_TYPE" == "python" ]; then
docker run --rm -v `pwd`:/io -e CONF -e PYTHON_VERSION $DOCKER_IMAGE /io/travis/build_python.sh ; fi
- if [ "$BUILD_TYPE" == "manylinux" ]; then
docker run --rm -v `pwd`:/io -e PYTHON_PATH $DOCKER_IMAGE /io/travis/build_manylinux_wheels.sh ; fi
- if [ "$BUILD_TYPE" == "sdist" ]; then
docker run --rm -v `pwd`:/io -e PYTHON_VERSION $DOCKER_IMAGE /io/travis/build_sdist_package.sh ; fi
- if [ "$BUILD_TYPE" == "osx" ]; then source ./travis/build_osx_package.sh ; fi
- if [ "$BUILD_TYPE" == "coverage" ]; then
docker run --rm -v `pwd`:/io -e TRAVIS -e TRAVIS_JOB_ID -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST $DOCKER_IMAGE /io/travis/coverage.sh ; fi
- if [ "$BUILD_TYPE" == "style" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
docker run --rm -v `pwd`:/io -e TRAVIS_COMMIT_RANGE $DOCKER_IMAGE /io/travis/style.sh ; fi
deploy:
provider: script
script: travis/upload_packages.sh
skip_cleanup: true
on:
tags: true