##// END OF EJS Templates
tox: add positional arg handling
ergo -
Show More
@@ -1,45 +1,45 b''
1 1 language: python
2 2
3 3 dist: xenial
4 4
5 5 notifications:
6 6 on_success: change
7 7 on_failure: always
8 8
9 9 matrix:
10 10 include:
11 11 - python: 3.5
12 12 env: TOXENV=py35 ES_VERSION=6.6.2 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-${ES_VERSION}.tar.gz
13 13 - python: 3.6
14 14 env: TOXENV=py36 ES_VERSION=6.6.2 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-${ES_VERSION}.tar.gz
15 15 addons:
16 16 postgresql: "9.6"
17 17 - python: 3.6
18 18 env: TOXENV=py36 PGPORT=5432 ES_VERSION=6.6.2 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-${ES_VERSION}.tar.gz
19 19 addons:
20 20 postgresql: "10"
21 21 apt:
22 22 packages:
23 23 - postgresql-10
24 24 - postgresql-client-10
25 25
26 26 install:
27 27 - wget ${ES_DOWNLOAD_URL}
28 28 - tar -xzf elasticsearch-oss-${ES_VERSION}.tar.gz
29 29 - ./elasticsearch-${ES_VERSION}/bin/elasticsearch &
30 30 - travis_retry pip install -U setuptools pip tox
31 31
32 32 script:
33 - travis_retry tox
33 - travis_retry tox -- -vv
34 34
35 35 services:
36 36 - postgresql
37 37 - redis
38 38
39 39 before_script:
40 40 - psql -c "create user test with encrypted password 'test';" -U postgres
41 41 - psql -c 'create database appenlight_test owner test;' -U postgres
42 42
43 43 after_success:
44 44 - pip install coveralls
45 45 - coveralls
@@ -1,15 +1,15 b''
1 1 [tox]
2 2 envlist = py35,py36
3 3 setupdir = backend
4 4
5 5 [testenv]
6 6 extras = dev
7 7 passenv = DB
8 8 DB_STRING
9 9
10 10 commands=
11 11 pip install -U pip setuptools wheel
12 12 pip install -r backend/requirements.txt
13 13 pip install -e backend
14 14 appenlight-reindex-elasticsearch -c testing.ini -t all
15 pytest backend/src/appenlight/tests
15 pytest backend/src/appenlight/tests {posargs}
General Comments 4
Under Review
author

Auto status change to "Under Review"

Under Review
author

Auto status change to "Under Review"

You need to be logged in to leave comments. Login now