Skip to content

Commit

Permalink
Revert "Remove unused config files"
Browse files Browse the repository at this point in the history
This reverts commit daccf00.
  • Loading branch information
newton-per-sqm committed Jul 20, 2023
1 parent 620d88d commit 3e83f30
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 0 deletions.
99 changes: 99 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

cache:
paths:
- .cache/pip


stages:
- test
- deploy


.base:
image: python:3.11
before_script:
- pip install -U virtualenv
- virtualenv venv
- source venv/bin/activate
- echo "machine git-ce.rwth-aachen.de" > ~/.netrc
- echo "login gitlab-ci-token" >> ~/.netrc
- echo "password ${CI_JOB_TOKEN}" >> ~/.netrc


.tox:
extends:
- .base
before_script:
- !reference [.base, before_script]
- pip install tox


.test:
extends:
- .tox
stage: test
before_script:
- apt-get update && apt-get install -y xvfb libegl1 libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 x11-utils libxcb-cursor0
- !reference [.tox, before_script]
coverage: /^TOTAL.+?(\d+%)$/
artifacts:
when: always
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml


pylint:
extends:
- .tox
stage: test
allow_failure: true
script:
- tox -e lint -- --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:codeclimate.json
artifacts:
when: always
reports:
codequality: codeclimate.json


py39:
extends:
- .test
image: python:3.9
script:
- tox -e py39 -- --junitxml=report.xml --cov-report xml


py310:
extends:
- .test
image: python:3.10
script:
- tox -e py310 -- --junitxml=report.xml --cov-report xml


py311:
extends:
- .test
image: python:3.11
script:
- tox -e py311 -- --junitxml=report.xml --cov-report xml


pages:
extends:
- .base
stage: deploy
script:
- pip install sphinx sphinx_autodoc_typehints sphinx_autopackagesummary sphinx_rtd_theme
- pip install -e .
- sphinx-build -b html docs public
artifacts:
paths:
- public
only:
- main
37 changes: 37 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
!!python/object:qtools_metadata.metadata.Metadata
measurement: !Measurement
name: test-measurement
user: Max Mustermann
datetime: 2022-02-22
valid: false
device: !Device
name: test-device
description: test device description
layoutParameters: parameters
sample: !Sample
name: test-sample-15
description: test sample description
creator: Miriam Musterfrau
layout: !SampleLayout "4259afa2-4c41-4ab2-b69a-8b995d3c5fc2"
factory: !Factory "9471ed6c-24ac-443a-b89e-3073ef4cfc52"
wafer: !Wafer "dda3fa0c-fd1b-4561-992d-d7fc197502bf"
layout: !DeviceLayout "7eff5ad7-5933-4731-9f96-9b43ae481cec"
measurementType: !MeasurementType "edeba69c-cfd9-4227-8e0f-e40b63948cd2"
settings: !MeasurementSettings
name: test-settings
settings: "{settings}"
mapping: !MeasurementMapping
name: test-mapping
mapping: "{mapping}"
experimentSetup: !ExperimentSetup
name: ExperimentSetup1
temperature: "4.0"
instrumentsChannels: "channels"
standardSettings: "settings"
filters: "filters"
series: !MeasurementSeries "9c7cedb3-cf05-45ed-bf8c-8444a320ea8f"
script: !MeasurementScript
name: test-script
language: python
script: "print('Hello')"
data:
2 changes: 2 additions & 0 deletions src/qumada/config.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[gate_mapping]
save_directory = C:/Users/till3/Documents/PythonScripts

0 comments on commit 3e83f30

Please sign in to comment.