forked from open-io/oio-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (52 loc) · 2.39 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
sudo: required
dist: bionic
language: python
python:
- "2.7"
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse'
- sourceline: 'deb http://mirror2.openio.io/pub/repo/openio/sds/19.10/ubuntu/ bionic/'
key_url: 'http://mirror2.openio.io/pub/repo/openio/APT-GPG-KEY-OPENIO-0'
update: true
packages:
- python-zookeeper # Required because not published on pypi
env:
matrix:
- TEST_SUITE=iam
- TEST_SUITE=s3 # Latest stable/supported versions
- TEST_SUITE=s3 SDS_BRANCH=master SWIFT_BRANCH=master # Integration with latest versions
- TEST_SUITE=encryption
- TEST_SUITE=encryption SDS_BRANCH=master SWIFT_BRANCH=master
- TEST_SUITE=swift
- TEST_SUITE=swift SDS_BRANCH=master SWIFT_BRANCH=master
- TEST_SUITE=ns-wide-versioning
- TEST_SUITE=ns-wide-versioning SDS_BRANCH=master SWIFT_BRANCH=master
- TEST_SUITE=unit
- TEST_SUITE=unit SDS_BRANCH=master SWIFT_BRANCH=master
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y --force-yes python-virtualenv jq liberasurecode-dev libssl-dev libattr1-dev libleveldb-dev libzookeeper-mt-dev
install:
- echo -en "travis_fold:start:install\r"
- pip install --upgrade pip setuptools virtualenv tox flake8
- test -n "$SWIFT_BRANCH" && git config --local submodule.third_party/swift.branch "$SWIFT_BRANCH" || true
- test -n "$SWIFT3_BRANCH" && git config --local submodule.third_party/swift3.branch "$SWIFT3_BRANCH" || true
- test -n "$SDS_BRANCH" && git config --local submodule.third_party/oio-sds.branch "$SDS_BRANCH" || true
- git submodule update --init --remote
- ( grep -v -e "PyECLib" -e "requests" -e "six" -e "\<xattr\>" -e "ZooKeeper" third_party/oio-sds/all-requirements.txt ; grep -v -e "eventlet" -e "lxml" third_party/swift/requirements.txt ) > deps-requirements.txt
- pip install --upgrade -r deps-requirements.txt
- cd third_party/oio-sds && python setup.py install && cd ../..
- cd third_party/swift && python setup.py install && cd ../..
- cd third_party/swift3 && python setup.py install && cd ../..
- python setup.py develop
- pip install --upgrade -r test-requirements.txt
- go get gopkg.in/ini.v1 golang.org/x/sys/unix
- echo -en "travis_fold:end:install\r"
script:
- set -e
- flake8 oioswift tests
- ./tests/run_tests.sh "$TEST_SUITE"
after_success:
- codecov -X gcov