Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 64 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@ jobs:
- image: circleci/mariadb:10.1-ram
- image: circleci/redis:5.0.4
- image: rabbitmq:3.5.4
- image: couchbase/server-sandbox:5.5.0
- image: circleci/mongo:4.2.3-ram
working_directory: ~/repo
steps:
- checkout
- run:
name: install dependencies
command: |
sudo apt-get update
sudo apt install lsb-release -y
curl -O https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-6-amd64.deb
sudo dpkg -i ./couchbase-release-1.0-6-amd64.deb
sudo apt-get update
sudo apt install libcouchbase-dev -y
rm -rf venv
export PATH=/home/circleci/.local/bin:$PATH
pip install --user -U pip setuptools virtualenv
Expand All @@ -36,7 +29,7 @@ jobs:
- run:
name: run tests
environment:
INSTANA_TEST: true
INSTANA_TEST: "true"
command: |
. venv/bin/activate
pytest -v
Expand All @@ -48,9 +41,31 @@ jobs:
- image: circleci/mariadb:10-ram
- image: circleci/redis:5.0.4
- image: rabbitmq:3.5.4
- image: couchbase/server-sandbox:5.5.0
- image: circleci/mongo:4.2.3-ram
working_directory: ~/repo
steps:
- checkout
- run:
name: install dependencies
command: |
python -m venv venv
. venv/bin/activate
pip install -U pip
python setup.py install_egg_info
pip install -e '.[test]'
- run:
name: run tests
environment:
INSTANA_TEST: "true"
command: |
. venv/bin/activate
pytest -v

py38couchbase:
docker:
- image: circleci/python:3.7.8-stretch
- image: couchbase/server-sandbox:5.5.0
working_directory: ~/repo
steps:
- checkout
- run:
Expand All @@ -66,14 +81,45 @@ jobs:
. venv/bin/activate
pip install -U pip
python setup.py install_egg_info
pip install -e '.[test]'
pip install -e '.[test-couchbase]'
- run:
name: run tests
environment:
INSTANA_TEST: true
INSTANA_TEST: "true"
COUCHBASE_TEST: "true"
command: |
. venv/bin/activate
pytest -v
pytest -v tests/clients/test_couchbase.py

py27couchbase:
docker:
- image: circleci/python:2.7.16-stretch
- image: couchbase/server-sandbox:5.5.0
working_directory: ~/repo
steps:
- checkout
- run:
name: install dependencies
command: |
sudo apt-get update
sudo apt install lsb-release -y
curl -O https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-6-amd64.deb
sudo dpkg -i ./couchbase-release-1.0-6-amd64.deb
sudo apt-get update
sudo apt install libcouchbase-dev -y
python -m venv venv
. venv/bin/activate
pip install -U pip
python setup.py install_egg_info
pip install -e '.[test-couchbase]'
- run:
name: run tests
environment:
INSTANA_TEST: "true"
COUCHBASE_TEST: "true"
command: |
. venv/bin/activate
pytest -v tests/clients/test_couchbase.py

py27cassandra:
docker:
Expand All @@ -99,8 +145,8 @@ jobs:
- run:
name: run tests
environment:
INSTANA_TEST: true
CASSANDRA_TEST: true
INSTANA_TEST: "true"
CASSANDRA_TEST: "true"
command: |
. venv/bin/activate
pytest -v tests/clients/test_cassandra-driver.py
Expand All @@ -126,8 +172,8 @@ jobs:
- run:
name: run tests
environment:
INSTANA_TEST: true
CASSANDRA_TEST: true
INSTANA_TEST: "true"
CASSANDRA_TEST: "true"
command: |
. venv/bin/activate
pytest -v tests/clients/test_cassandra-driver.py
Expand All @@ -149,8 +195,8 @@ jobs:
- run:
name: run tests
environment:
INSTANA_TEST: true
GEVENT_TEST: true
INSTANA_TEST: "true"
GEVENT_TEST: "true"
command: |
. venv/bin/activate
pytest -v tests/frameworks/test_gevent.py
Expand Down
26 changes: 0 additions & 26 deletions runtests.py

This file was deleted.

4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ def check_setuptools():
'pytest>=4.6',
'urllib3[secure]>=1.15'
],
'test-couchbase': [
'couchbase==2.5.9',
],
'test': [
'aiohttp>=3.5.4;python_version>="3.5"',
'asynqp>=0.4;python_version>="3.5"',
'celery>=4.1.1',
'couchbase==2.5.9',
'django>=1.11,<2.2',
'nose>=1.0',
'flask>=0.12.2',
Expand Down
2 changes: 1 addition & 1 deletion tests/clients/test_couchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
pass


@pytest.mark.skip(reason='Unstable tests')
@pytest.mark.skipif("COUCHBASE_TEST" not in os.environ, reason="")
class TestStandardCouchDB(unittest.TestCase):
def setup_class(self):
""" Clear all spans before a test run """
Expand Down
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
if "CASSANDRA_TEST" not in os.environ:
collect_ignore_glob.append("*test_cassandra*")

if "COUCHBASE_TEST" not in os.environ:
collect_ignore_glob.append("*test_couchbase*")

if "GEVENT_TEST" not in os.environ:
collect_ignore_glob.append("*test_gevent*")

Expand Down