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
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- development
|
||||||
|
- merge_requests
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: debian:buster
|
image: python:3.7
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: rss.fudiggity.nl
|
url: rss.fudiggity.nl
|
||||||
before_script:
|
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
|
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.fudiggity.nl/sonny/ansible-playbooks.git deployment
|
||||||
- mkdir /root/.ssh
|
- mkdir /root/.ssh
|
||||||
- echo "192.168.178.63 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbtcdgJBhVCKsO88cV19EYefDTopdYejEQCp1pYr1Ga" > /root/.ssh/known_hosts
|
- echo "192.168.178.63 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbtcdgJBhVCKsO88cV19EYefDTopdYejEQCp1pYr1Ga" > /root/.ssh/known_hosts
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
python-linting:
|
python-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
allow_failure: true
|
image: python:3.7
|
||||||
image: python:3.7.4-slim-stretch
|
|
||||||
before_script:
|
before_script:
|
||||||
- pip install poetry --quiet
|
- pip install poetry --quiet
|
||||||
- poetry config cache-dir ~/.cache/poetry
|
- poetry config cache-dir ~/.cache/poetry
|
||||||
|
|
@ -11,12 +10,19 @@ python-linting:
|
||||||
- poetry run isort src/ --check-only --recursive
|
- poetry run isort src/ --check-only --recursive
|
||||||
- poetry run black src/ --line-length 88 --check
|
- poetry run black src/ --line-length 88 --check
|
||||||
- poetry run autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
|
- poetry run autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- development
|
||||||
|
- merge_requests
|
||||||
|
|
||||||
javascript-linting:
|
javascript-linting:
|
||||||
stage: lint
|
stage: lint
|
||||||
allow_failure: true
|
|
||||||
image: node:12
|
image: node:12
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- development
|
||||||
|
- merge_requests
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ python-tests:
|
||||||
services:
|
services:
|
||||||
- postgres:11
|
- postgres:11
|
||||||
- memcached:1.5.22
|
- memcached:1.5.22
|
||||||
image: python:3.7.4-slim-stretch
|
image: python:3.7
|
||||||
before_script:
|
before_script:
|
||||||
- pip install poetry --quiet
|
- pip install poetry --quiet
|
||||||
- poetry config cache-dir .cache/poetry
|
- poetry config cache-dir .cache/poetry
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue