Skip to content

Commit

Permalink
CI: plug into the 19.10 package repository, fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fvennetier committed Dec 4, 2019
1 parent 85d688e commit c876438
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 23 deletions.
41 changes: 22 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ dist: bionic
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
addons:
apt:
sources:
- sourceline: 'deb http://mirror.openio.io/pub/repo/openio/sds/18.10/ubuntu/ bionic/'
key_url: 'http://mirror.openio.io/pub/repo/openio/APT-GPG-KEY-OPENIO-0'
- 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'
# Please keep the following list sorted!
packages:
- apache2
Expand All @@ -19,7 +21,6 @@ addons:
- flex
- gdb
- lcov
- libapache2-mod-wsgi
- libapreq2-dev
- libattr1-dev
- libcurl4-gnutls-dev
Expand All @@ -38,7 +39,10 @@ addons:
- python-pbr
- python-setuptools
- python-virtualenv
- python-zookeeper
- python3
- python3-coverage
- python3-zookeeper
- redis-server
- redis-tools
- sqlite3
Expand All @@ -47,11 +51,10 @@ addons:
- zookeeperd
services:
- zookeeper
before_install:
- sudo apt-get install $([ "$TRAVIS_PYTHON_VERSION" == "2.7" ] && echo 'libapache2-mod-wsgi' || echo 'libapache2-mod-wsgi-py3')
install:
- virtualenv $HOME/oio && source $HOME/oio/bin/activate
- pip install --upgrade pip setuptools virtualenv tox
- pip install --upgrade -r all-requirements.txt -r test-requirements.txt
- pip install --upgrade zkpython
- 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
Expand Down Expand Up @@ -86,18 +89,6 @@ jobs:
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=worm

- stage: Functional tests (Python 2)
script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=repli
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=ec,with-service-id
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=3copies,with-service-id
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=single,small-cache,fsync,webhook
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=multi-beanstalk

- stage: Functional tests (Python 3)
script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=cli
Expand All @@ -118,6 +109,18 @@ jobs:
env: TEST_SUITE=mover,with-service-id
python: 3.6

- stage: Functional tests (Python 2)
script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=repli
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=ec,with-service-id
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=3copies,with-service-id
- script: ./tools/oio-travis-suites.sh
env: TEST_SUITE=single,small-cache,fsync,webhook
- 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
Expand Down
2 changes: 1 addition & 1 deletion all-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ simplejson>=2.0.9,<4.0.0
six>=1.11.0
urllib3>=1.13.1,<1.25.0
werkzeug>=0.9.1,<1.0.0
zkpython<1.0.0
ZooKeeper>3.5.5
4 changes: 3 additions & 1 deletion tools/oio-travis-failfast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -e
source $HOME/oio/bin/activate

# Not required, Travis tests already run in a virtualenv if language is python.
#source $HOME/oio/bin/activate

fold_start() { echo -e "travis_fold:start:$1\033[33;1m$2\033[0m" ; }
fold_end() { echo -e "\ntravis_fold:end:$1\r" ; }
Expand Down
5 changes: 4 additions & 1 deletion tools/oio-travis-suites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -e
source $HOME/oio/bin/activate

# Not required, Travis tests already run in a virtualenv if language is python.
#source $HOME/oio/bin/activate

export PATH="$PATH:/tmp/oio/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/oio/lib"
ulimit -c unlimited -S
Expand Down
5 changes: 4 additions & 1 deletion tools/oio-travis-unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -e
set -x
source $HOME/oio/bin/activate

# Not required, Travis tests already run in a virtualenv if language is python.
#source $HOME/oio/bin/activate

export PATH="$PATH:/tmp/oio/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/oio/lib"

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ setenv =
deps =
-r{toxinidir}/all-requirements.txt
-r{toxinidir}/test-requirements.txt
sitepackages = True
commands = nosetests {posargs:tests/unit}
passenv = TRAVIS CIRCLECI OIO_* NOSE_ARGS

Expand Down

0 comments on commit c876438

Please sign in to comment.