summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml2
-rwxr-xr-xpkg/tools/checkout_leap.sh2
-rw-r--r--tox.ini18
3 files changed, 18 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdcd83b..ae1b113 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,2 +1,2 @@
test:
- script: pkg/tools/checkout_leap.sh && tox --recreate -e py27-dev
+ script: tox --recreate -e py27-dev
diff --git a/pkg/tools/checkout_leap.sh b/pkg/tools/checkout_leap.sh
index 082ff8f..cdcb90e 100755
--- a/pkg/tools/checkout_leap.sh
+++ b/pkg/tools/checkout_leap.sh
@@ -5,5 +5,5 @@ fi
if [ ! -d "../soledaddev" ]; then
git clone https://github.com/leapcode/soledad ../soledaddev
fi
-cd ../leap_commondev && git checkout develop && git pull origin develop
+cd ../leap_commondev && git checkout master && git pull origin master
cd ../soledaddev && git checkout develop && git pull origin develop
diff --git a/tox.ini b/tox.ini
index 0eef22c..cea73b2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,9 +17,22 @@ setenv =
HOME=/tmp
[testenv:py27-dev]
+commands =
+ py.test -k 'not bench' --pep8 -x {posargs}
+deps =
+ -r{toxinidir}/pkg/requirements-testing.pip
+ gnupg
+ -egit+https://0xacab.org/leap/leap_pycommon@master#egg=leap.common
+ -egit+https://0xacab.org/leap/soledad@develop#egg=leap.soledad.common&subdirectory=common
+ -egit+https://0xacab.org/leap/soledad@develop#egg=leap.soledad.client&subdirectory=client
+setenv =
+ HOME=/tmp
+ PATH=/usr/bin/:/bin/
+
+[testenv:py27-dev-local]
# This environment assumes leap_common and soledad repos
-# are in the parent folder.
-# Use pkg/tools/checkout_leap.sh script to checkout those.
+# are checked out locally in the parent folder.
+# Use pkg/tools/checkout_leap.sh script to do that.
commands =
py.test -k 'not bench' --pep8 -x {posargs}
deps =
@@ -32,6 +45,7 @@ setenv =
HOME=/tmp
PATH=/usr/bin/:/bin/
+
[testenv:py27-bench]
commands = py.test {posargs}
changedir = bench