Update CI jobs
This commit is contained in:
parent
7dab98ef5a
commit
bea0257cae
4 changed files with 16 additions and 6 deletions
|
|
@ -5,3 +5,7 @@ static:
|
|||
- npm install
|
||||
script:
|
||||
- npm run build
|
||||
only:
|
||||
refs:
|
||||
- development
|
||||
- merge_requests
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
deploy:
|
||||
stage: deploy
|
||||
image: debian:buster
|
||||
image: python:3.7
|
||||
environment:
|
||||
name: production
|
||||
url: rss.fudiggity.nl
|
||||
before_script:
|
||||
- apt-get update && apt-get install --quiet --quiet --assume-yes ansible git
|
||||
- pip install ansible --quiet
|
||||
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.fudiggity.nl/sonny/ansible-playbooks.git deployment
|
||||
- mkdir /root/.ssh
|
||||
- echo "192.168.178.63 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbtcdgJBhVCKsO88cV19EYefDTopdYejEQCp1pYr1Ga" > /root/.ssh/known_hosts
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
python-linting:
|
||||
stage: lint
|
||||
allow_failure: true
|
||||
image: python:3.7.4-slim-stretch
|
||||
image: python:3.7
|
||||
before_script:
|
||||
- pip install poetry --quiet
|
||||
- poetry config cache-dir ~/.cache/poetry
|
||||
|
|
@ -11,12 +10,19 @@ python-linting:
|
|||
- poetry run isort src/ --check-only --recursive
|
||||
- poetry run black src/ --line-length 88 --check
|
||||
- poetry run autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
|
||||
only:
|
||||
refs:
|
||||
- development
|
||||
- merge_requests
|
||||
|
||||
javascript-linting:
|
||||
stage: lint
|
||||
allow_failure: true
|
||||
image: node:12
|
||||
before_script:
|
||||
- npm install
|
||||
script:
|
||||
- npm run lint
|
||||
only:
|
||||
refs:
|
||||
- development
|
||||
- merge_requests
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ python-tests:
|
|||
services:
|
||||
- postgres:11
|
||||
- memcached:1.5.22
|
||||
image: python:3.7.4-slim-stretch
|
||||
image: python:3.7
|
||||
before_script:
|
||||
- pip install poetry --quiet
|
||||
- poetry config cache-dir .cache/poetry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue