From 1e493d13194a65d77ef12811e20bca76c4639aa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Wed, 30 Jun 2021 15:22:41 +0200
Subject: [PATCH] compile under PyPy as well

---
 .travis.yml | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index a31031b..254dfdb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,32 +10,41 @@ before_script:
   - ./cc-test-reporter before-build
   - pip install -r requirements.txt
   - pip install pytest coverage pytest-cov
-  - DEBUG=1 python setup.py install
 after_script:
   - coverage xml
   - coverage report
   - ./cc-test-reporter after-build -t coverage.py --exit-code ${TRAVIS_TEST_RESULT}
 jobs:
   include:
+    - stage: test
+      python: "pypy3.5"
+      script:
+        - python setup.py install
+        - pytest --cov=./ --cov-report=xml
     - stage: test
       python: "3.8"
       script:
+        - DEBUG=1 python setup.py install
         - pytest --cov=./ --cov-report=xml
     - stage: test
       python: "3.5"
       script:
+        - DEBUG=1 python setup.py install
         - pytest --cov=./ --cov-report=xml
     - stage: test
       python: "3.6"
       script:
+        - DEBUG=1 python setup.py install
         - pytest --cov=./ --cov-report=xml
     - stage: test
       python: "3.7"
       script:
+        - DEBUG=1 python setup.py install
         - pytest --cov=./ --cov-report=xml
     - stage: test
       python: "3.9"
       script:
+        - DEBUG=1 python setup.py install
         - pytest --cov=./ --cov-report=xml
     - stage: deploy
       python: "3.8"
@@ -112,5 +121,20 @@ jobs:
         - twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
       after_script:
         - echo "Done"
+    - stage: test
+      python: "pypy3.5"
+      before_script:
+        - sudo apt-get update
+        - sudo apt-get install -y patchelf
+        - pip install wheel auditwheel twine doctor-wheel cython
+      script:
+        - python setup.py bdist_wheel
+        - cd dist
+        - doctor-wheel *.whl
+        - auditwheel repair --plat manylinux2014_x86_64 *.whl
+        - cd wheelhouse
+        - twine upload -u $PYPI_USER -p $PYPI_PWD *.whl
+      after_script:
+        - echo "Done"
 
 
-- 
GitLab