~n0mn0m/circuitroomba

7cf000dadd9bd08649a245fc5ae1e6c06996c8be — n0mn0m 4 months ago 28e70b5
Sourcehut Build

Setup Sourcehut build and secrets.
2 files changed, 14 insertions(+), 22 deletions(-)

A .build.yml
D .gitlab-ci.yml
A .build.yml => .build.yml +14 -0
@@ 0,0 1,14 @@
image: ubuntu/latest
secrets:
  - 46f739e5-4538-45dd-a79f-bf173b7a2ed9
tasks:
  - test: |
      pip install circuitpython-build-tools Sphinx sphinx-rtd-theme tox codecov
      tox
      # - circuitpython-build-bundles --filename_prefix circuitroomba --library_location .
      export CODECOV=$(cat ~/.codecov)
      codecov -t $CODECOV
  # - pypi: |
  #     pip install -U twine
  #     python setup.py sdist
  #     twine upload dist/*

D .gitlab-ci.yml => .gitlab-ci.yml +0 -22
@@ 1,22 0,0 @@
image: python:3.7

test:
  stage: test
  script:
    - pip install circuitpython-build-tools Sphinx sphinx-rtd-theme tox codecov
    - tox
    # - circuitpython-build-bundles --filename_prefix circuitroomba --library_location .
    - codecov -t $CODECOV_TOKEN
  artifacts:
    paths:
      - htmlcov/

pypi:
  stage: deploy
  cache: {}
  script:
    - pip install -U twine
    - python setup.py sdist
    - twine upload dist/*
  only:
    - tags