diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 2fc7f84237eb58c4573a3f4a27306923ad74e52d..0000000000000000000000000000000000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Lint - -on: - push: - -jobs: - lint: - name: Run lint - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install poetry - uses: abatilo/actions-poetry@v2.0.0 - - name: Install dependencies - run: pip install tox - - name: Lint - run: tox -e lint,security diff --git a/.github/workflows/reformat.yml b/.github/workflows/reformat.yml deleted file mode 100644 index e87c5bf457da4c55805715cc814eef94f72b12be..0000000000000000000000000000000000000000 --- a/.github/workflows/reformat.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Reformat - -on: - push: - -jobs: - black: - name: Run black/isort - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install poetry - uses: abatilo/actions-poetry@v2.0.0 - - name: Install dependencies - run: pip install tox - - name: Reformat - run: tox -e reformat - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "Reformat code using black" - commit_options: '--no-verify --signoff' - file_pattern: "*.py" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..6e97338ac384bbef0dd06d1c8a05960a6c534a66 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: "debian:buster" + +.before-script: &before-script + - apt update && apt install -y python3-setuptools python3-pip python3-dev git + - pip3 install poetry tox + +before_script: + - *before-script + +stages: + - test + - build + +lint: + stage: test + script: + - tox -e lint + +build-deb: + stage: build + before_script: + - *before-script + - apt update && apt install -y build-essential debhelper devscripts equivs dh-virtualenv libffi-dev + script: + - ./build-deb.sh + - mkdir build + - mv ../*.deb build/ + + artifacts: + paths: + - build/* \ No newline at end of file