From 06865c1abd38fd056afe8fbee94d50e0e0048fdc Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 19 Jul 2018 17:05:30 -0700 Subject: [PATCH] Use Python3 in testing Python2 getting ever close to EOL. Test for the future. --- .travis.yml | 6 +++--- testscenario/requirements.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 testscenario/requirements.txt diff --git a/.travis.yml b/.travis.yml index 58bf63d..a92766f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,9 +22,9 @@ before_install: - sudo rabbitmqctl add_vhost celerypecl - sudo rabbitmqctl set_permissions -p celerypecl gdr '.*' '.*' '.*' # Celery - - sudo apt-get install -y python-virtualenv - - virtualenv venv - - venv/bin/pip install celery redis + - sudo apt-get install python-virtualenv + - virtualenv -p python3 venv + - venv/bin/pip install -r testscenario/requirements.txt - venv/bin/celery worker --config celeryamqplibconfig --workdir $PWD/testscenario --detach --pidfile celeryamqplib.pid - venv/bin/celery worker --config celerypeclconfig --workdir $PWD/testscenario --detach --pidfile celerypecl.pid - venv/bin/celery worker --config celeryredisconfig --workdir $PWD/testscenario --detach --pidfile celeryredis.pid diff --git a/testscenario/requirements.txt b/testscenario/requirements.txt new file mode 100644 index 0000000..d3323c8 --- /dev/null +++ b/testscenario/requirements.txt @@ -0,0 +1,2 @@ +celery +redis