aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-04-07 19:39:52 +0200
committerGravatar GitHub <[email protected]>2019-04-07 19:39:52 +0200
commit7e9133d1ac2b4cb82a9ee0dead37f342933ce8d4 (patch)
tree787f45a1ba5e1f16b9cd7d9e8cdf660573914151 /azure-pipelines.yml
parentSet `harakiri = 30`. (diff)
parentAddress review by @jchristgit (diff)
Merge pull request #198 from gdude2002/django+176/project-layout
[Fixes #158, #160, #176, #193] Project layout changes
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 4031da8c..78bbffae 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -17,12 +17,7 @@ jobs:
- script: docker run -v $(pwd):/app:ro --rm ruby:alpine /bin/ash -c "gem install mdl && cd /app && mdl"
displayName: run markdownlint
- - script: |
- echo 'set -ex' > script.sh
- echo 'for dockerfile in docker/**/**/**/Dockerfile; do' >> script.sh
- echo ' docker run -i hadolint/hadolint hadolint --ignore DL3008 --ignore DL3018 --ignore DL3019 - < $dockerfile' >> script.sh
- echo 'done' >> script.sh
- sh script.sh
+ - script: docker run -i hadolint/hadolint hadolint --ignore DL3008 --ignore DL3018 --ignore DL3019 - < docker/app/Dockerfile
displayName: run hadolint
- job: lint_python
@@ -47,7 +42,7 @@ jobs:
architecture: x64
- script: >
- python -m pip install $(grep -E '^(coverage|flake8|mccabe|pep8-naming)' pyproject.toml | cut -d' ' -f1)
+ python -m pip install $(grep -E '^(coverage|flake8|mccabe|pep8-naming)' Pipfile | cut -d' ' -f1)
displayName: install lint requirements
- script: flake8
@@ -96,7 +91,7 @@ jobs:
USER_CREATE_COMMAND: CREATE USER pysite WITH PASSWORD 'pysite' CREATEDB
displayName: set up the database
- - script: python -m pip install poetry && python -m poetry install --extras "test ci"
+ - script: python -m pip install pipenv && python -m pipenv install --dev --system
displayName: install requirements
- script: |
@@ -132,7 +127,7 @@ jobs:
command: 'login'
- script: |
- docker build -t pythondiscord/django:latest .
+ docker build -t pythondiscord/django:latest docker/app/Dockerfile
docker push pythondiscord/django:latest
displayName: Build and push the image