Revision 3dfcc22f7e18aa454a79bfb40f1e3e52b609e4c7 authored by Amos Egel on 03 December 2020, 09:04:16 UTC, committed by Amos Egel on 03 December 2020, 09:04:16 UTC
1 parent 9d4b5af
Raw File
.gitlab-ci.yml
image: python:3.7

stages:
  - test
  - build
  - publish

# Run all automatic tests
test:
  stage: test
  script:
    - echo "Testing"
    - apt-get update
    - apt-get install -y gfortran
    - pip3 install -e .
    - pip3 install nose2
    - nose2 -v

# Create binary wheels as well as the source distribution
dist:
  image: quay.io/pypa/manylinux2010_x86_64
  stage: build
  script:
    - chmod +x CI/build-wheel-manylinux.sh
    - CI/build-wheel-manylinux.sh
  artifacts:
    paths:
      - dist/
    expire_in: 1 week
  only:
    - tags

# Upload the contents of the /dist folder to testpypi
testpypi:
  stage: publish
  variables:
    TWINE_USERNAME: $TESTPYPI_USERNAME
    TWINE_PASSWORD: $TESTPYPI_PASSWORD
  script:
    - pip install twine
    - echo "Upload to testpypi"
    - twine upload --repository testpypi --skip-existing dist/*
  only:
    - tags

# Upload the contents of the /dist folder to PyPi
#pypi:
#  stage: publish
#  variables:
#    TWINE_USERNAME: $PYPI_USERNAME
#    TWINE_PASSWORD: $PYPI_PASSWORD
#  script:
#    - pip install twine
#    - echo "Upload to PyPi"
#    - twine upload --skip-existing dist/*
#  only:
#    - tags
back to top