diff --git a/.github/workflows/workflow.yaml b/.github/workflows/docs.yaml similarity index 100% rename from .github/workflows/workflow.yaml rename to .github/workflows/docs.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 8624f359..00000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,75 +0,0 @@ -variables: - DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME} - DOCKER_IMAGE_DEV: cimpy - DOCKER_FILE: ${CI_PROJECT_DIR}/Dockerfile - -stages: -- prepare -- test -- generate -- deploy - - -prepare: - variables: - GIT_SUBMODULE_STRATEGY: none - stage: prepare - image: - name: gcr.io/kaniko-project/executor:debug - entrypoint: [ "" ] - script: - - mkdir -p /kaniko/.docker - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --context ${CI_PROJECT_DIR} --dockerfile ${DOCKER_FILE} --destination ${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_DEV}-base-image --cache=true --snapshotMode=redo --use-new-run - - -text-documentation: - stage: generate - script: - - cd documentation && ./docu.sh - image: ${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_DEV}-base-image - except: - - master - needs: ['prepare'] - -html-documentation: - stage: generate - script: - - cd documentation && ./docu.sh --release - image: ${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_DEV}-base-image - artifacts: - paths: - - documentation - only: - - master - needs: ['prepare'] - - -pages: - stage: deploy - script: - - mkdir .public - - cp -r documentation/_build/html/. .public - - mv .public public - artifacts: - paths: - - public - - .public - dependencies: - - html-documentation - only: - - master - needs: ['html-documentation'] - -test: - stage: test - variables: - PYTHONPATH: "build/Source/Python:Source/Python" - script: - - pytest -v -cov --junitxml=report.xml - image: ${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_DEV}-base-image - - artifacts: - reports: - junit: report.xml - needs: ['prepare'] diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2f66bb5c..00000000 --- a/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -FROM fedora:29 - -LABEL \ - org.label-schema.schema-version = "1.0" \ - org.label-schema.name = "cimpy" \ - org.label-schema.license = "Mozilla Public License Version 2.0" \ - org.label-schema.vendor = "Institute for Automation of Complex Power Systems, RWTH Aachen University" \ - org.label-schema.author.name = "Jan Dinkelbach" - -RUN dnf -y update - -RUN dnf -y install \ - make \ - python3-pip \ - graphviz-devel - -RUN dnf --refresh -y install \ - python3-devel - -RUN pip3 install sphinx_rtd_theme - -RUN pip3 install sphinx - -RUN pip3 install pytest - -RUN pip3 install pytest-check - -ADD . /cimpy - -WORKDIR /cimpy - -RUN python3 setup.py install diff --git a/action.yaml b/action.yaml deleted file mode 100644 index b751e892..00000000 --- a/action.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# action.yml -name: 'Build Documentation' -description: 'We are going to build the documentation!' -runs: - using: 'docker' - image: 'Dockerfile' - entrypoint: './entrypoint.sh' diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index 9c267ecc..00000000 --- a/entrypoint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if [ -n "${GITHUB_WORKSPACE}" ]; -then - cd documentation - ./docu.sh --release - cp -a ${GITHUB_WORKSPACE}/documentation/_build/html ${GITHUB_WORKSPACE}/built_documentation -fi