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

chrisr pushed a commit to branch feature/QPID-8517-parallel-ci-py2-py3
in repository https://gitbox.apache.org/repos/asf/qpid-cpp.git


The following commit(s) were added to 
refs/heads/feature/QPID-8517-parallel-ci-py2-py3 by this push:
     new 8bce22d  QPID-8517 Build and test in parallel for python2 and python3
8bce22d is described below

commit 8bce22d3f85742371aa9e0b7ef28086dd38142b8
Author: Chris Richardson <[email protected]>
AuthorDate: Sun Apr 11 16:13:29 2021 +0100

    QPID-8517 Build and test in parallel for python2 and python3
---
 .travis.yml | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 0007a78..acda095 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,35 +1,21 @@
 os:
 - linux
-sudo: false
+dist: focal
 language:
-- c
 - cpp
 cache: ccache
-before_install:
-- export PATH=/home/travis/.local/bin:$PATH
-- export PYTHONPATH=/home/travis/.local/lib/python2.7/site-packages:$PYTHONPATH
-install:
-- pip install --user --upgrade pip
-- pip install --user qpid-python
 
 jobs:
   include:
     - name: "Build and test under python2"
-      python: "2.7"
-      addons:
-        apt:
-          packages:
-          - libboost-program-options-dev
-          - libboost-system-dev
-          - libboost-test-dev
       before_script:
       - mkdir Build
       - cd Build
-      - cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install
+      - echo "Python2"
+      - PYENV_VERSION="3.5" cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install
       script:
       - make -j$(nproc) && make install && ctest -V
     - name: "Build and test under python3"
-      python: "3.5"
       addons:
         apt:
           packages:
@@ -39,7 +25,8 @@ jobs:
       before_script:
       - mkdir Build
       - cd Build
-      - cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install
+      - echo "Python3"
+      - PYENV_VERSION="3.5" cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install
       script:
       - make -j$(nproc) && make install && ctest -V
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to