Skip to content
Snippets Groups Projects

Fix CI pipeline

Merged Benjamin Hättasch requested to merge fix-pipeline into main
1 file
+ 15
10
Compare changes
  • Side-by-side
  • Inline
+ 15
10
@@ -14,24 +14,27 @@ cache:
@@ -14,24 +14,27 @@ cache:
paths:
paths:
- ~/.cache/pip/
- ~/.cache/pip/
before_script:
.before_script_template:
- python -V # Print out python version for debugging
before_script:
- apt-get -qq update
- python -V # Print out python version for debugging
- apt-get -qq install -y python3-virtualenv python3 python3-dev python3-pip gettext default-mysql-client default-libmysqlclient-dev
- apt-get -qq update
- ./Utils/setup.sh --ci
- apt-get -qq install -y python3-virtualenv python3 python3-dev python3-pip gettext default-mysql-client default-libmysqlclient-dev
- mkdir -p public/badges public/lint
- ./Utils/setup.sh --ci
- echo undefined > public/badges/$CI_JOB_NAME.score
- mkdir -p public/badges public/lint
- source venv/bin/activate
- echo undefined > public/badges/$CI_JOB_NAME.score
- pip install pylint-gitlab pylint-django
- source venv/bin/activate
- mysql --version
- pip install pylint-gitlab pylint-django
 
- mysql --version
check:
check:
 
extends: .before_script_template
script:
script:
- ./Utils/check.sh --all
- ./Utils/check.sh --all
- source venv/bin/activate
- source venv/bin/activate
- ./manage.py makemigrations --dry-run --check
- ./manage.py makemigrations --dry-run --check
test:
test:
 
extends: .before_script_template
script:
script:
- source venv/bin/activate
- source venv/bin/activate
- echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
- echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
@@ -50,6 +53,7 @@ test:
@@ -50,6 +53,7 @@ test:
junit: unit.xml
junit: unit.xml
lint:
lint:
 
extends: .before_script_template
stage: test
stage: test
script:
script:
- pylint --load-plugins pylint_django --django-settings-module=AKPlanning.settings_ci --rcfile pylintrc --exit-zero --output-format=text AK* | tee /tmp/pylint.txt
- pylint --load-plugins pylint_django --django-settings-module=AKPlanning.settings_ci --rcfile pylintrc --exit-zero --output-format=text AK* | tee /tmp/pylint.txt
@@ -67,6 +71,7 @@ lint:
@@ -67,6 +71,7 @@ lint:
when: always
when: always
doc:
doc:
 
extends: .before_script_template
stage: test
stage: test
script:
script:
- cd docs
- cd docs
Loading