Skip to content

Commit fceb3ab

Browse files
committed
Update ci scripts.
1 parent 6f6953a commit fceb3ab

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,21 @@ before_install:
2727

2828
- if [[ $OSX ]]; then brew update; fi
2929

30+
- export LEPT_VER=1.72
31+
3032
install:
3133
- if [[ $OSX ]]; then brew install icu4c pango; brew link --force gettext; fi
3234
- if [[ $OSX ]]; then export ICU_ROOT=/usr/local/opt/icu4c ; fi
3335
- wget --no-check-certificate https://www.cmake.org/files/v3.3/cmake-3.3.1-Linux-x86_64.sh
3436
- sudo sh cmake-3.3.1-Linux-x86_64.sh --skip-license --prefix=/usr
35-
- wget -O leptonica.zip https://github.com/egorpugin/leptonica/archive/master.zip
37+
- wget -O leptonica.zip https://github.com/DanBloomberg/leptonica/archive/v$LEPT_VER.zip
3638
- unzip leptonica.zip -d .
37-
- cmake -Hleptonica-master -Bleptonica-master/build
38-
- make -C leptonica-master/build
39+
- cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER/build
40+
- make -C leptonica-$LEPT_VER/build
3941
- if [[ $LINUX && "$CXX" = "g++" ]]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
4042

4143
script:
4244
- mkdir build
4345
- cd build
44-
- cmake .. -DLeptonica_BUILD_DIR=leptonica-master/build
46+
- cmake .. -DLeptonica_BUILD_DIR=leptonica-$LEPT_VER/build
4547
- make

appveyor.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ before_build:
1212
- if %platform%==Win64 set generator=Visual Studio 14 Win64
1313
- if %platform%==Win32 set vcplatform=Win32
1414
- if %platform%==Win64 set vcplatform=x64
15-
- ps: Start-FileDownload 'https://github.com/egorpugin/leptonica/archive/master.zip' -FileName leptonica.zip
15+
16+
- set LEPT_VER=1.72
17+
18+
- ps: Start-FileDownload 'https://github.com/DanBloomberg/leptonica/archive/v%LEPT_VER%.zip' -FileName leptonica.zip
1619
- 7z x leptonica.zip
17-
- cmake -Hleptonica-master -Bleptonica-master/build -G "%generator%"
18-
- msbuild leptonica-master/build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
20+
- cmake -Hleptonica-%LEPT_VER% -Bleptonica-%LEPT_VER%/build -G "%generator%"
21+
- msbuild leptonica-%LEPT_VER%/build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
1922

2023
build_script:
2124
- mkdir build
2225
- cd build
23-
- cmake .. -G "%generator%" -DLeptonica_BUILD_DIR=leptonica-master/build -DSTATIC=1
26+
- cmake .. -G "%generator%" -DLeptonica_BUILD_DIR=leptonica-%LEPT_VER%/build -DSTATIC=1
2427
- msbuild tesseract.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

0 commit comments

Comments
 (0)