mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 23:12:21 +01:00
ci/deploy: Install git and no pylint deps
This commit is contained in:
@ -1,22 +1,24 @@
|
||||
before_script:
|
||||
- apt-get -qq update
|
||||
- apt-get -qq install -y python3 python3-venv python3-pip
|
||||
- python3 -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip install -r requirements.txt pylint
|
||||
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
pylint:
|
||||
stage: test
|
||||
before_script:
|
||||
- apt-get -qq update
|
||||
- apt-get -qq install -y python3 python3-venv python3-pip
|
||||
- python3 -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip install -r requirements.txt pylint
|
||||
script:
|
||||
- pylint marietje/marietje marietje/metrics marietje/playerapi marietje/queues marietje/songs marietje/stats
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
only: ['marietje-zuid']
|
||||
before_script:
|
||||
- apt-get -qq update
|
||||
- apt-get -qq install -y git openssh-client
|
||||
script: |
|
||||
umask 077
|
||||
mkdir -p "$HOME/.ssh"
|
||||
|
||||
Reference in New Issue
Block a user