Skip to content

Commit

Permalink
ISLANDORA-2053: Update travis.yml to force PHP 5.3 to run under Ubunt…
Browse files Browse the repository at this point in the history
…u Precise (#152)

* force PHP 5.3 to run under Ubuntu Precise

Should run directly since we already added the crazy logic in tesseract
a few months ago

* WRONG!

* Update tests so OCR passes

…on all platforms. “TIFF” was being recognised as “T|FF”
  • Loading branch information
DiegoPino authored and whikloj committed Sep 14, 2017
1 parent e16dbce commit 778ae5b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
26 changes: 22 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
sudo: required
dist: trusty
language: php

matrix:
include:
#5.3.3 Ubuntu Precise exceptions
- php: 5.3.3
dist: precise
env: FEDORA_VERSION="3.5"
- php: 5.3.3
dist: precise
env: FEDORA_VERSION="3.6.2"
- php: 5.3.3
dist: precise
env: FEDORA_VERSION="3.7.0"
- php: 5.3.3
dist: precise
env: FEDORA_VERSION="3.8.1"
php:
- 5.3.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
branches:
only:
- /^7.x/
env:
- FEDORA_VERSION="3.5"
- FEDORA_VERSION="3.6.2"
- FEDORA_VERSION="3.7.0"
- FEDORA_VERSION="3.8.1"

branches:
only:
- /^7.x/
before_install:
- cd $HOME
- git clone -b 7.x git://github.com/Islandora/islandora.git
Expand Down
Binary file modified tests/fixtures/test.tiff
Binary file not shown.
6 changes: 3 additions & 3 deletions tests/islandora_newspaper_derivatives_ingest_purge.test
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ class IslandoraNewspaperPageIngestTestCase extends IslandoraCollectionWebTestCas
// Attempts to validate datastreams where possible.
$datastreams = array(
array('OBJ', 'tiff'),
array('OCR', 'text', array('TEST TIFF', 14)),
array('HOCR', 'text', array('TEST', 14)),
array('HOCR', 'text', array('TIFF', 14)),
array('OCR', 'text', array('HAPPY DOG', 3)),
array('HOCR', 'text', array('HAPPY', 6)),
array('HOCR', 'text', array('CAT', 3)),
array('JP2', 'jp2'),
array('PDF', 'pdf'),
array('TN', 'image'),
Expand Down

0 comments on commit 778ae5b

Please sign in to comment.