Skip to content
Snippets Groups Projects
Select Git revision
  • 55f1d4cdde8f9f7d9a49180444fc1618fd43bc71
  • master default protected
  • bump-pytest-mock
  • bump-pytest
  • bump-requests
  • bump-tenacity
  • bump-typesystem
  • bump-apistar
  • generate-doc-worker-workerversion-endpoints
  • import_files
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
30 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.61 KiB
    image: python:3.5
    stages:
      - test
      - deploy
      - docs
    
    client-tests:
      stage: test
    
      script:
      - pip install .[test]
      - pytest
      - flake8
    
    client-deploy-pypi:
      stage: deploy
      when: manual
      only:
        - master@arkindex/api-client
      environment:
        name: pypi
        url: https://pypi.org/project/arkindex-client
    
      before_script:
        - pip install twine setuptools wheel
        - echo "[distutils]" > ~/.pypirc
        - echo "index-servers =" >> ~/.pypirc
        - echo "  pypi" >> ~/.pypirc
        - echo "[pypi]" >> ~/.pypirc
        - echo "repository=https://upload.pypi.org/legacy/" >> ~/.pypirc
        - echo "username=$PYPI_DEPLOY_USERNAME" >> ~/.pypirc
        - echo "password=$PYPI_DEPLOY_PASSWORD" >> ~/.pypirc
      script:
        - python setup.py sdist bdist_wheel
        - twine upload dist/* -r pypi
    
    client-deploy-testpypi:
      stage: deploy
      when: manual
      only:
        - branches@arkindex/api-client
      environment:
        name: testpypi
        url: https://test.pypi.org/project/arkindex-client
    
      before_script:
        - pip install twine setuptools wheel
        - echo "[distutils]" > ~/.pypirc
        - echo "index-servers =" >> ~/.pypirc
        - echo "  testpypi" >> ~/.pypirc
        - echo "[testpypi]" >> ~/.pypirc
        - echo "repository=https://test.pypi.org/legacy/" >> ~/.pypirc
        - echo "username=$PYPI_DEPLOY_USERNAME" >> ~/.pypirc
        - echo "password=$PYPI_DEPLOY_PASSWORD" >> ~/.pypirc
      script:
        - python setup.py sdist bdist_wheel
        - twine upload dist/* -r testpypi
    
    pages:
      stage: docs
      only:
        - master
      artifacts:
        paths:
          - public
      before_script:
        - pip install sphinx
      script:
        - cd docs
        - make html