This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
63 lines (54 loc) · 1.66 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dist: xenial
language: java
jdk:
- openjdk11
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.14.0
OMP_THREAD_LIMIT: 1
addons:
apt:
sources:
# tesseract-ocr >= 4.0 is not available in the standard Xenial / Trusty distro
- sourceline: 'ppa:alex-p/tesseract-ocr'
packages:
- tesseract-ocr
- libtesseract-dev
- imagemagick
- libmagickcore-dev
- libmagickwand-dev
- libmagic-dev
- apache2-utils
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/scripts/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
# install Docker Compose
- mkdir -p "$HOME/bin";
- export PATH="$HOME/bin:$PATH";
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > "$HOME/bin/docker-compose";
- chmod +x "$HOME/bin/docker-compose";
# install python and pip for testing the examples
- sudo apt install python2.7 python-pip
- pip install --user virtualenv
# fix postgres
- echo manual | sudo tee /etc/init/postgresql.override
# Stop postgresql. Related to this issue - https://github.com/travis-ci/travis-ci/issues/4842
- sudo service postgresql stop
# wait for postgresql to shutdown
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done
# print versions of used applications
- docker --version
- sudo $HOME/bin/docker-compose --version
- tesseract --version
- convert --version
- ./gradlew downloadDependencies > /dev/null
script:
- ./travis_gradle_build.sh