Add CI on GitLab

This commit is contained in:
Jake Howard 2022-01-08 12:34:50 +00:00
parent dc99766cdd
commit 5f410c35a9
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 13 additions and 20 deletions

View file

@ -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

12
.gitlab-ci.yml Normal file
View file

@ -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

View file

@ -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