-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 1008 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: python
dist: focal
python:
- "3.9"
services:
- docker
stages:
- test
- build
- name: deploy
if: branch = main
before_install:
- sudo apt-get update
- sudo apt-get -y install tesseract-ocr
- sudo cat /etc/ImageMagick-6/policy.xml | tail
- sudo sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' /etc/ImageMagick-6/policy.xml
- sudo cat /etc/ImageMagick-6/policy.xml | tail
- tesseract --help
- pip install poetry
jobs:
include:
- stage: test
install: poetry install
script:
- poetry run lint
- poetry run bandit
- poetry run coverage
- poetry run unit_tests
- stage: build
before_install: skip
install: skip
script:
- docker build -t bra/backend:latest .
- stage: deploy
before_install: skip
install: skip
script:
- echo "Deployement not working on Travis due to piping env variables."