Add CI on GitLab
This commit is contained in:
parent
dc99766cdd
commit
5f410c35a9
3 changed files with 13 additions and 20 deletions
19
.github/workflows/lint.yml
vendored
19
.github/workflows/lint.yml
vendored
|
@ -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
12
.gitlab-ci.yml
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue