You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2021/04/11 16:40:30 UTC

[qpid-cpp] 01/02: QPID-8517 Build and test in parallel for python2 and python3

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

commit 16cf7f5ab23e00de65623c7fbd65431fb99fefd3
Author: Chris Richardson <ch...@dyson.com>
AuthorDate: Sun Apr 11 14:06:30 2021 +0100

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

diff --git a/.travis.yml b/.travis.yml
index 4633621..08d9f99 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,12 @@
 os:
 - linux
-sudo: false
+distro: xenial 
 language:
-- c
 - cpp
 cache: ccache
 addons:
   apt:
     packages:
-    - cmake
     - libboost-dev
     - libboost-program-options-dev
     - libboost-system-dev
@@ -19,19 +17,31 @@ addons:
     - libsasl2-dev
     - sasl2-bin
     - swig
-    - python-dev
     - valgrind
     - ruby
-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
-before_script:
-- mkdir Build
-- cd Build
-- cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install
-script:
-- make -j3 && make install && ctest -V
+
+jobs:
+  include:
+    - name: "Build and test under python2"
+      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
+      before_script:
+      - mkdir Build
+      - cd Build
+      - pyenv versions
+      - cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install -DPYTHON_EXECUTABLE="$(which python2)"
+      script:
+      - make -j$(nproc) && make install && ctest -V
+    - name: "Build and test under python3"
+      before_script:
+      - mkdir Build
+      - cd Build
+      - pyenv versions
+      - PYENV_VERSION="3.7.1" cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install -DPYTHON_EXECUTABLE="$(which python3)"
+      script:
+      - make -j$(nproc) && make install && ctest -V
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org