travis full test 1

This commit is contained in:
Stephen Gaito 2019-11-27 12:53:22 +00:00
parent 72dc72625d
commit 633b67144b
3 changed files with 25 additions and 2 deletions

View File

@ -89,6 +89,7 @@ matrix:
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- ./buildScripts/reportEnvs || travis_terminate 1;
- ./buildScripts/getBuildTools || travis_terminate 1;
- ./buildScripts/getDevLibraries || travis_terminate 1;
- ./buildScripts/getPoppler || travis_terminate 1;

View File

@ -26,12 +26,12 @@ if [ -x "$(which docker)" ]; then
FROM $DOCKER_FROM
COPY ./ /
RUN ldconfig
ENTRYPOINT ["/usr/bin/pdf2htmlEX"]
ENTRYPOINT ["/usr/local/bin/pdf2htmlEX"]
DOCKERFILE_HERE_DOC
cd ..
docker build -t stephengaito/pdf2htmlex:test-`date +%Y%m%d-%H.%M.%S` dockerDir
docker build -t stephengaito/pdf2htmlex:test-`date +%Y_%m_%d-%H_%M_%S` dockerDir
else
echo "Docker is not installed... skipping creation of a docker image."

22
buildScripts/reportEnvs Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash
# This bash script reports the more important TRAVIS environment variables
echo "TravisCI env:"
echo " tag: [$TARVIS_TAG]"
echo " branch: [$TARVIS_BRANCH]"
echo " commit: [$TARVIS_COMMIT]"
echo " build dir: [$TRAVIS_BUILD_DIR]"
echo " repo slug: [$TRAVIS_REPO_SLUG]"
echo "UploadTool env:"
echo " suffix: [$UPLOADTOOL_SUFFIX]"
source ./buildScripts/versionEnvs
echo "pdf2htmlEX env:"
echo " poppler: [$POPPLER_VERSION]"
echo " fontforge: [$FONTFORGE_VERSION]"
echo " pdf2htmlEX: [$PDF2HTMLEX_VERSION]"
echo " docker from: [$DOCKER_FROM]"
echo "machine arch: [$MACHINE_ARCH]"