forked from open-io/oio-sds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (93 loc) · 2.94 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
sudo: required
dist: bionic
language: python
python:
- "3.6"
addons:
apt:
sources:
- sourceline: 'deb http://mirror2.openio.io/pub/repo/openio/sds/20.04/ubuntu/ bionic/'
key_url: 'http://mirror2.openio.io/pub/repo/openio/APT-GPG-KEY-OPENIO-0'
# Please keep the following list sorted!
packages:
- apache2
- asn1c
- attr
- beanstalkd
- bison
- curl
- flex
- gdb
- lcov
- libapache2-mod-wsgi-py3
- libapreq2-dev
- libattr1-dev
- libcurl4-gnutls-dev
- liberasurecode-dev
- libglib2.0-dev
- libjson-c-dev
- libleveldb-dev
- liblzo2-dev
- libsqlite3-dev
- libzmq3-dev
- libzookeeper-mt-dev
- openio-gridinit
- python3
- python3-coverage
- redis-server
- redis-tools
- sqlite3
- zookeeper
- zookeeper-bin
- zookeeperd
services:
- zookeeper
install:
- pip install --upgrade pip setuptools virtualenv tox -r all-requirements.txt -r test-requirements.txt
- go get gopkg.in/ini.v1 golang.org/x/sys/unix
- sudo bash -c "echo '/tmp/core.%p.%E' > /proc/sys/kernel/core_pattern"
- mkdir /tmp/oio
- git fetch --tags
env:
global:
- CMAKE_OPTS="-DENABLE_CODECOVERAGE=on -DCMAKE_INSTALL_PREFIX=/tmp/oio -DLD_LIBDIR=lib -DZK_LIBDIR=/usr/lib -DZK_INCDIR=/usr/include/zookeeper"
- G_DEBUG=fatal_warnings
- G_DEBUG_LEVEL=W
- ZK=127.0.0.1:2181
- LD_LIBRARY_PATH=/tmp/oio/lib
- PKG_CONFIG_PATH=/tmp/oio/lib/pkgconfig
jobs:
fast_finish: true
include:
- stage: Fail Fast tests
script: ./tools/oio-travis-failfast.sh
name: Copyright, Release build, SDK build
- script: ./tools/oio-travis-unit.sh
name: C unit/func, Python 3 unit/pep8
- stage: Functional tests (fast)
script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=slave
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=cli
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=worm
- stage: Functional tests
script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=rebuilder,with-service-id,zlib,predictible-chunk-ids
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=repli,with_tls,predictible-chunk-ids
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=ec,with-service-id,with_tls,predictible-chunk-ids
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=3copies,with-service-id
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=mover,with-service-id,predictible-chunk-ids
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=single,small-cache,fsync,webhook,zlib
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=multi-beanstalk
after_success:
- bash <(curl -s https://codecov.io/bash) -f /tmp/cmake_coverage.output
- codecov
- if cat ${HOME}/go_coverage.output.* > go_coverage.output; then rm ${HOME}/go_coverage.output.*; else echo "" > go_coverage.output; fi
- bash <(curl -s https://codecov.io/bash) -f go_coverage.output