-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
37 lines (31 loc) · 984 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
dist: bionic
language: elixir
matrix:
include:
- elixir: 1.7.0
otp_release: 22.0
- elixir: 1.9.0
otp_release: 22.0
script:
- mix test
addons:
apt:
packages:
- tesseract-ocr
env:
global:
- CC_TEST_REPORTER_ID=d263af6633d496aebee2d97ddc12eccf98ab39e72de1734b55023d587d928ed1
before_install:
- sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
- sudo apt-get update -q
- sudo apt-get install tesseract-ocr tesseract-ocr-eng ghostscript -y
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- mix deps.get --only docs
- MIX_ENV=test mix credo --strict
- MIX_ENV=test mix coveralls --verbose
- MIX_ENV=test mix coveralls.json --verbose
- MIX_ENV=test mix coveralls.travis
- ./cc-test-reporter after-build -r "$CC_TEST_REPORTER_ID" -t excoveralls --exit-code $TRAVIS_TEST_RESULT