You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2021/01/04 15:41:34 UTC

[allura] 02/03: travis: fix pip cmd; enable py3 testing

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 7c1a679d4b310ba93871ad1404da7e01120f6d00
Author: Dave Brondsema <db...@slashdotmedia.com>
AuthorDate: Sat Jan 2 12:52:50 2021 -0500

    travis: fix pip cmd; enable py3 testing
---
 .travis.yml | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index c335487..529efcf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,12 +16,24 @@
 #       under the License.
 
 language: python
-python:
-  - "2.7"
-before_install:
-  - sudo apt-get install -qq python-svn libjpeg8-dev zlib1g-dev
-install: "pip install -r requirements.txt --use-mirrors"
-before_script:
-  - ln -s /usr/lib/python2.7/dist-packages/pysvn $VIRTUAL_ENV/lib/python2.7/site-packages/
+jobs:
+  include:
+    - python: "2.7"
+      dist: bionic  # Ubuntu 18.04
+      before_install:
+        - sudo apt-get install -qq python-svn
+      virtualenv:  # only works on stock python
+        system_site_packages: true
+    - python: "3.7"
+      dist: focal  # Ubuntu 20.04
+      before_install:
+        - sudo apt-get install -qq python3-cxx-dev libsvn-dev # for building pysvn
+      before_script:
+        - pip install https://sourceforge.net/projects/pysvn/files/pysvn/V1.9.12/pysvn-1.9.12.tar.gz
+install:
+  - sudo apt-get install -qq libjpeg8-dev zlib1g-dev
+  - pip install -r requirements.txt
+  - npm install
+script:
   - ./rebuild-all.bash
-script: ./run_tests
+  - ./run_tests