From 5f410c35a993e453c62377aec4478d41fe54d368 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 8 Jan 2022 12:34:50 +0000 Subject: [PATCH] Add CI on GitLab --- .github/workflows/lint.yml | 19 ------------------- .gitlab-ci.yml | 12 ++++++++++++ README.md | 2 +- 3 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/lint.yml create mode 100644 .gitlab-ci.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index a7e0acf..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Lint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install ansible - run: sudo apt-get update && sudo apt-get install -y ansible - - name: Install dependencies - run: ./scripts/setup.sh - - name: Run linters - run: ./scripts/lint.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fe2a07e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +ansible: + image: python:3.9-slim + variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" + cache: + paths: + - .cache/pip + before_script: + - apt-get update && apt-get install -y bash git + - ./scripts/setup.sh + script: + - ./scripts/lint.sh diff --git a/README.md b/README.md index ac449a8..57ff017 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Dotfiles -![](https://github.com/RealOrangeOne/dotfiles/workflows/Lint/badge.svg) +![CI](https://git.theorangeone.net/sys/dotfiles/badges/master/pipeline.svg) Settings and Preferences for transfer between machines