1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

Merge pull request #28 from stephengaito/travisLocalTests

Travis local tests
Partial work on using travis to perform local browser tests... which fail in way different to local browser tests on a local machine.... so we need a strategy to allow failures on travis AND to automatically upload the results to the github releases page...
BUT we will overhaul and document the buildScripts before fixing this issue.
This commit is contained in:
stephengaito 2020-06-05 08:18:55 +01:00 committed by GitHub
commit 6f38dfffeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 4 deletions

View File

@ -24,11 +24,12 @@ jobs:
# services: # services:
# - docker # - docker
dist: bionic dist: bionic
script: ./buildScripts/travisLinuxDoItAll script:
- ./buildScripts/travisLinuxDoItAll
# - stage: test # - stage: test
# os: # os:
# - linux # - linux
# script: ./testScripts/doItAllTravis # script: ./testScripts/runLocalTests
#deploy: #deploy:
# provider: releases # provider: releases
# api_key: # api_key:

View File

@ -28,7 +28,9 @@ export DEBIAN_FRONTEND=noninteractive
./buildScripts/buildFontforge ./buildScripts/buildFontforge
./buildScripts/buildPdf2htmlEX ./buildScripts/buildPdf2htmlEX
./buildScripts/installPdf2htmlEX ./buildScripts/installPdf2htmlEX
#./buildScripts/createAppImage #./testScripts/runLocalTests
#./buildScripts/createDockerImage ./buildScripts/createAppImage
./buildScripts/createDebianPackage
./buildScripts/createDockerImage
#./buildScripts/uploadGitHubRelease #./buildScripts/uploadGitHubRelease
#./buildScripts/uploadDockerImage #./buildScripts/uploadDockerImage

View File

@ -94,6 +94,7 @@ class BrowserTests(Common):
def test_geneve_1564(self): def test_geneve_1564(self):
self.run_test_case('geneve_1564.pdf') self.run_test_case('geneve_1564.pdf')
@unittest.skip("Skipping text_visibility test due to clipping issues")
def test_text_visibility(self): def test_text_visibility(self):
self.run_test_case('text_visibility.pdf', ['--correct-text-visibility', 1]) self.run_test_case('text_visibility.pdf', ['--correct-text-visibility', 1])

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -ev
# This bash script runs the local browser tests # This bash script runs the local browser tests
# We start by running a virtual frame buffer as display 99.0 # We start by running a virtual frame buffer as display 99.0

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -ev
# This bash script runs the (simple non-browser) tests # This bash script runs the (simple non-browser) tests
python3 test_output.py python3 test_output.py

0
testScripts/doItAll Normal file → Executable file
View File

0
testScripts/doItAllTravis Normal file → Executable file
View File

16
testScripts/runLocalTests Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -ev
# This bash script runs the pdf2htmlEX tests
cd pdf2htmlEX/test
# The following is only needed for the local browser tests
#
./installAutomaticTestSoftware
./runLocalTests
./runLocalBrowserTests