1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

Merge pull request #26 from stephengaito/updateTravis

Update travis
Sorted out building on Travis-Linux (Ubuntu 18.04) now working but need tests and upload
Attempted (and failed) to get Travis-MacOS working. Since I have no MacOS machines locally and the cost of a cloud MacOS instance is too high, I am unable to understand how to fix HomeBrew build.
ABANDONED HomeBrew for MacOS.
This commit is contained in:
stephengaito 2020-06-03 05:19:31 +01:00 committed by GitHub
commit 0b0d14afd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 130 additions and 641 deletions

View File

@ -1,12 +1,12 @@
language: cpp
sudo: true
# NOTE: Since we do not have direct access to either MacOS or Windows
# machines on which to develop WE DO NOT support building on MacOS or
# Windows.
# for windows *test* of AppImage
# see https://docs.travis-ci.com/user/build-matrix/#using-different-programming-languages-per-job
# and https://discourse.appimage.org/t/run-appimage-on-windows/177
# and https://docs.travis-ci.com/user/reference/windows/
# why fuse is not possible on windows: https://superuser.com/questions/179436/is-it-possible-to-use-fuse-with-windows
# For Windows, it is known that the more recent Windows 10 versions are
# able to use either the debian archive OR AppImage (as Windows 10 now
# allows FUSE).
compiler: gcc
@ -14,90 +14,20 @@ branches:
except: # do not build tags that we create using the upload.sh script
- /^(?i:continuous.*)$/
# apt:
# update: true
# packages:
# # build tools
# - git
# - pkg-config
# - ruby
# - autoconf
# - libtool
# - cmake
# - make
# - gcc
# - g++
# - gettext
# - openjdk-8-jre-headless
# - tree
# # dev libraries
# - libcairo-dev
# - libspiro-dev
# - libpng-dev
# - libjpeg-dev
# - poppler-data
# - libpango1.0-dev
# - liblcms2-dev
# - libxml2-dev
# - libuninameslist-dev
# homebrew:
# packages:
# - pdf2html-new
# - autoconf
# - pkg-config
# - git
# - cmake
# - freetype
# # Poppler-specific packages
# - fontconfig
# - jpeg
# - nss
# # libuninameslist-specific packages
# - automake
# - libtool
# # fontforge-specific packages
# - python
# - glib
# - xml2
# - libspiro
# - gettext
# # pdf2htmlEX-specific packages
# - cairo
# - pango
# sauce_connect: true
matrix:
fast_finish: true
# allow_failures:
# - os: osx # Until the build passes, then re-enable.
jobs:
fast_finish: true
include:
# - stage: build-linux
# os:
# - linux
- stage: build-linux
os: linux
# env:
# global:
# - DOCKER_FROM="ubuntu:18.04"
# global: DOCKER_FROM="ubuntu:18.04"
# services:
# - docker
# dist: bionic
# script: ./buildScripts/travisLinuxAptDoItAll
- stage: build-osx
os:
- osx
osx_image: xcode10.1
addons:
homebrew:
update: true
script:
- ./buildScripts/travisHomeBrewDoItAll
- pdf2htmlEX --version
dist: bionic
script: ./buildScripts/travisLinuxDoItAll
# - stage: test
# os:
# - linux
#- osx
#- windows
# script: ./testScripts/doItAllTravis
#deploy:
# provider: releases

View File

@ -1,130 +0,0 @@
language: cpp
sudo: true
os:
- linux
- osx
env:
global:
- POPPLER_NAME="poppler-0.63.0"
- POPPLER_SOURCE="https://gitlab.freedesktop.org/poppler/poppler.git"
- FONTFORGE_SOURCE="https://github.com/fontforge/fontforge.git"
- LIBUNINAMESLIST_SOURCE="https://github.com/fontforge/libuninameslist.git"
compiler: gcc
addons:
apt:
update: true
packages:
- build-essential
- autoconf
- gcc
- pkg-config
- git
- cmake
- ca-certificates
- libfreetype6-dev
# Poppler-specific packages
- libfontconfig1-dev
- libjpeg-dev
- libnss3-dev
# libuninameslist-specific packages
- automake
- libtool
# fontforge-specific packages
- libltdl-dev
- python-dev
- libglib2.0-dev
- libxml2-dev
- libspiro-dev
- gettext
# pdf2htmlEX-specific packages
- default-jre
- libcairo2-dev
- libpango1.0-dev
homebrew:
packages:
- autoconf
- pkg-config
- git
- cmake
- freetype
# Poppler-specific packages
- fontconfig
- jpeg
- nss
# libuninameslist-specific packages
- automake
- libtool
# fontforge-specific packages
- python
- glib
- xml2
- libspiro
- gettext
# pdf2htmlEX-specific packages
- cairo
- pango
sauce_connect: true
matrix:
fast_finish: true
allow_failures:
- os: osx # Until the build passes, then re-enable.
before_install:
# Clone and build poppler
- git clone ${POPPLER_SOURCE}
- cd poppler;
git checkout tags/${POPPLER_NAME} -b poppler-local;
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr -DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none .;
make;
make install
- cd ${TRAVIS_BUILD_DIR}
# Install libuninameslist
- git clone ${LIBUNINAMESLIST_SOURCE}
- cd libuninameslist;
git checkout tags/20180701 -b libuninameslist-local;
autoreconf -i;
automake;
./configure --prefix=${TRAVIS_BUILD_DIR}/usr;
make;
make install
- cd ${TRAVIS_BUILD_DIR}
# Install fontforge
- git clone ${FONTFORGE_SOURCE}
- cd fontforge;
git checkout tags/20170731 -b fontforge-local;
./bootstrap;
./configure --disable-programs --disable-python-extension --disable-python-scripting --prefix=${TRAVIS_BUILD_DIR}/usr;
make;
make install;
sudo ldconfig
- cd ${TRAVIS_BUILD_DIR}
# Test setup
- pip install --user Pillow selenium sauceclient
- export DISPLAY=:99.0
- test/start_xvfb.sh
- pushd /
- python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
- popd
- sleep 5
before_script:
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/usr/lib:$LD_LIBRARY_PATH
- export PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- patch < CMakeLists.txt.patch
- mkdir build && cd build && cmake -DENABLE_SVG=ON -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr ..
script:
- make
- P2H_TEST_REMOTE=1 ctest --output-on-failure --verbose
- make install
- ${TRAVIS_BUILD_DIR}/usr/bin/pdf2htmlEX -v

View File

@ -1,25 +0,0 @@
#!/bin/bash
# This bash script clones and builds the specified poppler release
# See: https://github.com/pdf2htmlEX/buildAndPackagingTools/blob/master/building/awsEC2/scripts/dobuildPoppler
# Clone and build poppler
git clone ${POPPLER_SOURCE}
cd poppler
git checkout tags/${POPPLER_RELEASE}
git branch
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBOPENJPEG=none ..
make

View File

@ -1,11 +0,0 @@
#!/bin/bash
# This bash script copies the various scripts in the .travisScripts to the
# /home/travis/bin directory to ensure the current scripts are not lost
# when we checkout different versions of pdf2htmlEX
cp .travisScripts/* $HOME/bin
cp dobuild $HOME/bin
cp doinstall $HOME/bin

View File

@ -1,28 +0,0 @@
#!/bin/bash
# This bash scripts **installs** poppler
# See: https://github.com/pdf2htmlEX/buildAndPackagingTools/blob/master/building/awsEC2/scripts/doinstallPoppler
pushd poppler/build
sudo make install
popd
sudo mkdir -p /usr/include/poppler
sudo cp poppler/poppler/*.h /usr/include/poppler
sudo mkdir -p /usr/include/poppler/goo
sudo cp poppler/goo/*.h /usr/include/poppler/goo
sudo mkdir -p /usr/include/poppler/fofi
sudo cp poppler/fofi/*.h /usr/include/poppler/fofi
sudo mkdir -p /usr/include/poppler/splash
sudo cp poppler/splash/*.h /usr/include/poppler/splash
sudo cp poppler/build/poppler/poppler-config.h \
/usr/include/poppler

View File

@ -1,13 +0,0 @@
#!/bin/bash
# This bash script sets up the test environment
# Test setup
pip install --user Pillow selenium sauceclient
export DISPLAY=:99.0
test/start_xvfb.sh
pushd /
python -m SimpleHTTPServer 8000 >/dev/null 2>&1 &
popd
sleep 5

View File

@ -10,6 +10,8 @@ echo "BUILDING FontForge (using CMake)"
echo "-------------------------------------------------------------------"
echo ""
set -ev
cd fontforge
mkdir build

View File

@ -0,0 +1,53 @@
#!/bin/bash
# This bash script builds the complete pdf2htmlEX application LOCALLY
# (It does not create the AppImage or Docker images)
# Adjust the following two environment variables to suit your needs
#
export UNATTENDED="--assume-yes"
export MAKE_PARALLEL="-j $(nproc)"
# choose one of the following...
#
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
# The following environment variable determines where the poppler,
# poppler-data, fontforge and pdf2htmlEX packages are installed.
# CHANGE IT TO SUIT YOUR NEEDS:
#
export PDF2HTMLEX_PREFIX=/usr/local
set -ev
################
# do the build
./buildScripts/versionEnvs
./buildScripts/reportEnvs
./buildScripts/getBuildTools
./buildScripts/getDevLibraries
./buildScripts/getPoppler
./buildScripts/buildPoppler
./buildScripts/getFontforge
./buildScripts/buildFontforge
./buildScripts/buildPdf2htmlEX
./buildScripts/installPdf2htmlEX
#./buildScripts/createAppImage
#./buildScripts/createDockerImage
#./buildScripts/uploadGitHubRelease
#./buildScripts/uploadDockerImage

View File

@ -1,43 +0,0 @@
#!/bin/bash
# This bash script builds the complete pdf2htmlEX application LOCALLY
# (It does not create the AppImage or Docker images)
# Adjust the following two environment variables to suit your needs
#
export UNATTENDED="--assume-yes"
export MAKE_PARALLEL="-j $(nproc)"
# choose one of the following...
#
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
# The following environment variable determines where the poppler,
# poppler-data, fontforge and pdf2htmlEX packages are installed.
# CHANGE IT TO SUIT YOUR NEEDS:
#
export PDF2HTMLEX_PREFIX=/usr/local
################
# do the build
./buildScripts/versionEnvs || { echo 'versionEnvs FAILED' ; exit 1 ; }
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
./buildScripts/getBuildToolsApt || { echo 'getBuildToolsApt FAILED' ; exit 1 ; }
./buildScripts/getDevLibrariesApt || { echo 'getDevLibrariesApt FAILED' ; exit 1 ; }
./buildScripts/getPoppler || { echo 'getPoppler FAILED' ; exit 1 ; }
./buildScripts/buildPoppler || { echo 'buildPoppler FAILED' ; exit 1 ; }
./buildScripts/getFontforge || { echo 'getFontforge FAILED' ; exit 1 ; }
./buildScripts/buildFontforge || { echo 'buildFontforge FAILED' ; exit 1 ; }
./buildScripts/buildPdf2htmlEX || { echo 'buildPdf2htmlEX FAILED' ; exit 1 ; }
./buildScripts/installPdf2htmlEX || { echo 'installPdf2htmlEX FAILED' ; exit 1 ; }

View File

@ -1,47 +0,0 @@
#!/bin/bash
# This bash script builds the complete pdf2htmlEX application LOCALLY
# (It does not create the AppImage or Docker images)
# Adjust the following two environment variables to suit your needs
#
export UNATTENDED="--assume-yes"
export MAKE_PARALLEL="-j $(nproc)"
# choose one of the following...
#
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
# The following environment variable determines where the poppler,
# poppler-data, fontforge and pdf2htmlEX packages are installed.
# CHANGE IT TO SUIT YOUR NEEDS:
#
export PDF2HTMLEX_PREFIX=/home/linuxbrew/.linuxbrew
################
# do the build
# The following is used by the pdf2htmlEX CMakeLists.txt file
#
export USING_BREW=1
./buildScripts/versionEnvs || { echo 'versionEnvs FAILED' ; exit 1 ; }
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
./buildScripts/getBuildToolsBrew || { echo 'getBuildToolsBrew FAILED' ; exit 1 ; }
./buildScripts/getDevLibrariesBrew || { echo 'getDevLibrariesBrew FAILED' ; exit 1 ; }
./buildScripts/getPoppler || { echo 'getPoppler FAILED' ; exit 1 ; }
./buildScripts/buildPoppler || { echo 'buildPoppler FAILED' ; exit 1 ; }
./buildScripts/getFontforge || { echo 'getFontforge FAILED' ; exit 1 ; }
./buildScripts/buildFontforge || { echo 'buildFontforge FAILED' ; exit 1 ; }
./buildScripts/buildPdf2htmlEX || { echo 'buildPdf2htmlEX FAILED' ; exit 1 ; }
./buildScripts/installPdf2htmlEX || { echo 'installPdf2htmlEX FAILED' ; exit 1 ; }

View File

@ -6,8 +6,11 @@ echo ""
echo "-------------------------------------------------------------------"
echo "BUILDING pdf2htmlEX (using gcc)"
echo "-------------------------------------------------------------------"
echo ""
set -ev
cd pdf2htmlEX
mkdir build
cd build

View File

@ -1,15 +0,0 @@
#!/bin/bash
# This bash script builds pdf2htmlEX using Clang (if it is installed)
echo ""
echo "-------------------------------------------------------------------"
echo "BUILDING pdf2htmlEX (using CLang)"
echo "-------------------------------------------------------------------"
echo ""
cd pdf2htmlEX
mkdir build
cd build
CC=clang CXX=clang++ cmake -DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX ..
make $MAKE_PARALLEL

View File

@ -8,6 +8,8 @@ echo "BUILDING Poppler (using CMake)"
echo "-------------------------------------------------------------------"
echo ""
set -ev
cd poppler
mkdir build
cd build
@ -35,6 +37,11 @@ cmake \
-DBUILD_SHARED_LIBS=OFF \
-DRUN_GPERF_IF_PRESENT=OFF \
-DEXTRA_WARN=OFF \
-DWITH_JPEG=ON \
-DWITH_PNG=ON \
-DWITH_TIFF=OFF \
-DWITH_NSS=OFF \
-DWITH_Cairo=ON \
..
make $MAKE_PARALLEL
@ -91,3 +98,6 @@ make $MAKE_PARALLEL
# GLIB is requrired by pdf2htmlEX
# GObjectIntrospection is not needed by pdf2htmlEX?
# Iconv is only used if ENABLE_CPP
#
# They can be explicitly DISABLED using ENABLE_XXXX:BOOL=OFF where XXXX is
# the package name

View File

@ -2,6 +2,5 @@
# This bash script clean all pdf2htmlEX build products
cd pdf2htmlEX
rm -rf build pdf2htmlEX.1 share/*.css share/*.js share/*.min.* src/pdf2htmlEX-config.h src/util/css_const.h

View File

@ -10,6 +10,8 @@ echo "CREATING pdf2htmlEX AppImage"
echo "-------------------------------------------------------------------"
echo ""
set -ev
# For appimage output plugin
#
export VERSION="$PDF2HTMLEX_BRANCH-$BUILD_TIME"

View File

@ -12,6 +12,8 @@ echo ""
source /etc/lsb-release
set -ev
export DPKG_NAME="pdf2htmlEX-$PDF2HTMLEX_BRANCH-$BUILD_TIME-$MACHINE_ARCH-$DISTRIB_CODENAME.deb"
echo "export DPKG_NAME=\"$DPKG_NAME\"" >> buildScripts/reSourceVersionEnvs

View File

@ -14,6 +14,7 @@ source buildScripts/reSourceVersionEnvs
source buildScripts/dockerFunctions
set -ev
mkdir -p imageBuild/dockerDir

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -ev
# This bash script creates the pdf2htmlEX AppImage and Docker Images
#################

View File

@ -12,6 +12,8 @@ echo " (UNATTENDED: [$UNATTENDED])"
echo "-------------------------------------------------------------------"
echo ""
set -ev
sudo apt-get update
sudo apt-get $UNATTENDED install \
aptitude \

View File

@ -1,24 +0,0 @@
#!/bin/bash
# This bash script automates getting the required build tools (brew install)
echo ""
echo "-------------------------------------------------------------------"
echo "INSTALLING Build Tools (using Home/Linux Brew)"
echo "-------------------------------------------------------------------"
echo ""
brew update
brew install \
git \
pkg-config \
ruby \
autoconf \
libtool \
cmake \
make \
gcc \
gettext \
openjdk \
jq \
tree

View File

@ -13,6 +13,8 @@ echo " (UNATTENDED: [$UNATTENDED])"
echo "-------------------------------------------------------------------"
echo ""
set -ev
sudo apt-get update
sudo apt-get $UNATTENDED install \
libcairo-dev \

View File

@ -1,22 +0,0 @@
#!/bin/bash
# This bash script automates getting the development libraries required to
# build poppler and fontforge (using Home/Linux Brew)
echo ""
echo "-------------------------------------------------------------------"
echo "INSTALLING development libraries (using Home/Linux Brew)"
echo "-------------------------------------------------------------------"
echo ""
brew update
brew install \
cairo \
libpng \
jpeg \
libxml2 \
# libspiro \
# pango \
# little-cms2 \
# libuninameslist \

View File

@ -11,6 +11,8 @@ echo " (FONTFORGE_VERSION: [$FONTFORGE_VERSION])"
echo "-------------------------------------------------------------------"
echo ""
set -ev
FONTFORGE_SRC=$FONTFORGE_VERSION.tar.gz
rm -rf $FONTFORGE_SRC

View File

@ -12,6 +12,7 @@ echo " (PDF2HTMLEX_BRANCH: [$PDF2HTMLEX_BRANCH])"
echo "-------------------------------------------------------------------"
echo ""
set -ev
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH

View File

@ -1,24 +0,0 @@
#!/bin/bash
# This bash script automates the process of getting the original pdf2htmlEX
# source
PDF2HTMLEX_BRANCH=update-poppler
echo ""
echo "-------------------------------------------------------------------"
echo "GETTING pdf2htmlEX sources (using wget)"
echo " (PDF2HTMLEX_BRANCH: [$PDF2HTMLEX_BRANCH])"
echo "-------------------------------------------------------------------"
echo ""
wget https://codeload.github.com/stephengaito/pdf2htmlEX/zip/$PDF2HTMLEX_BRANCH
mv $PDF2HTMLEX_BRANCH $PDF2HTMLEX_BRANCH.zip
brew install unzip
unzip $PDF2HTMLEX_BRANCH.zip
mv pdf2htmlEX-$PDF2HTMLEX_BRANCH pdf2htmlEX

View File

@ -19,6 +19,8 @@ rm -rf poppler
rm -rf poppler-data-0.4.9.tar.gz
rm -rf poppler-data
set -ev
wget https://poppler.freedesktop.org/$POPPLER_VERSION.tar.xz
tar xvf $POPPLER_VERSION.tar.xz

View File

@ -1,24 +0,0 @@
#!/bin/bash
echo ""
echo "-------------------------------------------------------------------"
echo "INSTALLING FontForge locally"
echo " (UNATTENDED: [$UNATTENDED])"
echo "-------------------------------------------------------------------"
echo ""
if [ -z "$UNATTENDED" ] ; then
echo "WARNING: this may over-write any existing"
echo "FontForge version you have installed on your system."
echo "This may break other packages/applications."
echo ""
echo "This installation assumes you have 'sudo' privileges."
echo ""
echo "Type ctrl-c now if DO NOT want to continue"
read -p "Type anything else to continue: "
fi
cd fontforge
sudo make install
sudo ldconfig;

View File

@ -17,6 +17,8 @@ if [ -z "$UNATTENDED" ] ; then
fi
set -ev
cd pdf2htmlEX/build
sudo make install

View File

@ -1,47 +0,0 @@
#!/bin/bash
# This bash script installs Poppler into the local system
echo ""
echo "-------------------------------------------------------------------"
echo "INSTALLING Poppler locally"
echo " (UNATTENDED: [$UNATTENDED])"
echo "-------------------------------------------------------------------"
echo ""
if [ -z "$UNATTENDED" ] ; then
echo "WARNING: this may over-write any existing"
echo "Poppler version you have installed on your system."
echo "This may break other packages/applications."
echo ""
echo "This installation assumes you have 'sudo' privileges."
echo ""
echo "Type ctrl-c now if DO NOT want to continue"
read -p "Type anything else to continue: "
fi
cd poppler/build
sudo make install
cd ..
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler
sudo cp poppler/*.h $PDF2HTMLEX_PREFIX/include/poppler
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/goo
sudo cp goo/*.h $PDF2HTMLEX_PREFIX/include/poppler/goo
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/fofi
sudo cp fofi/*.h $PDF2HTMLEX_PREFIX/include/poppler/fofi
sudo mkdir -p $PDF2HTMLEX_PREFIX/include/poppler/splash
sudo cp splash/*.h $PDF2HTMLEX_PREFIX/include/poppler/splash
sudo cp build/poppler/poppler-config.h \
$PDF2HTMLEX_PREFIX/include/poppler
cd ../poppler-data
sudo make install prefix=$PDF2HTMLEX_PREFIX

View File

@ -1,69 +0,0 @@
#!/bin/bash
# This bash script builds everyting on an TravisCI Mac OSx worker
# See:
# https://docs.travis-ci.com/user/installing-dependencies/#using-homebrew-without-addon-on-older-macos-images
# For details on obtaining/using the correct ruby version for homebrew.
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
echo "-------------------------------------------------"
brew tap pdf2htmlEX/homebrew-brewTap
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
echo "-------------------------------------------------"
brew update
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
echo "-------------------------------------------------"
#brew install llvm
#brew install -v python@2
#brew install jq
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
#export llvmVersion=$(brew info --json=v1 llvm | jq '.[].installed[].version' | tr -d '"')
echo $llvmVersion
#export python2Version=$(brew info --json=v1 python@2 | jq '.[].installed[].version' | tr -d '"')
echo $python2Version
echo "-------------------------------------------------"
#brew info llvm
#brew switch llvm $llvmVersion
#brew info python@2
#brew switch python@2 $python2Version
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
ls -la $(which clang)
which python
ls -la $(which python)
python --version
echo "-------------------------------------------------"
brew install -v pdf2htmlex-new
echo "-------------------------------------------------"
echo $PATH
echo $LDFLAGS
echo $CPPFLAGS
which clang
ls -la $(which clang)
which python
ls -la $(which python)
python --version
which pdf2htmlEX
ls -la $(which pdf2htmlEX)
pdf2htmlEX --version
echo "-------------------------------------------------"

View File

@ -1,25 +0,0 @@
#!/bin/bash
# This bash script builds everyting on an TravisCI Linux (Ubunutu) worker
export UNATTENDED="--assume-yes"
export MAKE_PARALLEL="-j $(nproc)"
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
./buildScripts/versionEnvs || travis_terminate 1;
./buildScripts/reportEnvs || travis_terminate 1;
./buildScripts/getBuildTools || travis_terminate 1;
./buildScripts/getDevLibraries || travis_terminate 1;
./buildScripts/getPoppler || travis_terminate 1;
./buildScripts/buildPoppler || travis_terminate 1;
./buildScripts/installPoppler || travis_terminate 1;
./buildScripts/getFontforge || travis_terminate 1;
./buildScripts/buildFontforge || travis_terminate 1;
./buildScripts/installFontforge || travis_terminate 1;
./buildScripts/buildPdf2htmlEX || travis_terminate 1;
./buildScripts/installPdf2htmlEX || travis_terminate 1;
./buildScripts/createAppImage || travis_terminate 1;
./buildScripts/createDockerImage || travis_terminate 1;
./buildScripts/uploadGitHubRelease || travis_terminate 1;
./buildScripts/uploadDockerImage || travis_terminate 1;

View File

@ -1,11 +0,0 @@
#!/bin/bash
# This bash script builds everyting on an TravisCI Mac OSx worker
# See:
# https://docs.travis-ci.com/user/installing-dependencies/#using-homebrew-without-addon-on-older-macos-images
# For details on obtaining/using the correct ruby version for homebrew.
brew update
brew tap pdf2htmlEX/homebrew-brewTap
brew install pdf2htmlex-new

30
buildScripts/travisLinuxDoItAll Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
# This bash script builds everyting on an TravisCI Linux (Ubunutu) worker
set -ev
export UNATTENDED="--assume-yes"
export MAKE_PARALLEL="-j $(nproc)"
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
export PDF2HTMLEX_PREFIX=/usr/local
################
# do the build
./buildScripts/versionEnvs
./buildScripts/reportEnvs
./buildScripts/getBuildTools
./buildScripts/getDevLibraries
./buildScripts/getPoppler
./buildScripts/buildPoppler
./buildScripts/getFontforge
./buildScripts/buildFontforge
./buildScripts/buildPdf2htmlEX
./buildScripts/installPdf2htmlEX
#./buildScripts/createAppImage
#./buildScripts/createDockerImage
#./buildScripts/uploadGitHubRelease
#./buildScripts/uploadDockerImage

View File

@ -6,6 +6,8 @@
################
# do the uploads
set -ev
./buildScripts/reportEnvs || { echo 'reportEnvs FAILED' ; exit 1 ; }
./buildScripts/uploadGitHubRelease || { echo 'uploadGitHubRelease FAILED' ; exit 1 ; }