Add stage definitions of test jobs and add test to list of stages

Defining the stages instead of having travis guess them and implicitly build an order
ensures that the test stage is executed before the docker images are built.
This commit is contained in:
Mark Schmitt 2020-12-28 12:24:39 +01:00
parent d258fdc783
commit 80df0cc06a

View File

@ -4,6 +4,7 @@ dist: focal
os: linux os: linux
stages: stages:
- name: test
- name: build_docker - name: build_docker
if: branch =~ /^(master|dev|ng-.*)$/ if: branch =~ /^(master|dev|ng-.*)$/
- name: publish_manifest - name: publish_manifest
@ -12,21 +13,26 @@ stages:
jobs: jobs:
include: include:
- name: "Paperless on Python 3.6" - name: "Paperless on Python 3.6"
stage: test
python: "3.6" python: "3.6"
- name: "Paperless on Python 3.7" - name: "Paperless on Python 3.7"
stage: test
python: "3.7" python: "3.7"
- name: "Paperless on Python 3.8" - name: "Paperless on Python 3.8"
stage: test
python: "3.8" python: "3.8"
- name: "Documentation" - name: "Documentation"
stage: test
script: script:
- cd docs/ - cd docs/
- make html - make html
after_success: true after_success: true
- name: "Front end" - name: "Front end"
stage: test
language: node_js language: node_js
node_js: node_js:
- 15 - 15