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