~zeal-developers/zeal/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
build_image: shippableimages/ubuntu1404_python
cache: true
before_install:
  - dpkg --add-architecture i386
  - shippable_retry sudo apt-get -y -q update
install:
  - shippable_retry sudo apt-get -y -q install --no-install-recommends wine p7zip-full wget ca-certificates zip git curl
  - bash -c '[ -d $HOME/qt/Tools ] || mkdir -p $HOME/qt/OUT'
  - bash -c '[ -d $HOME/qt/Tools ] || wget -nv -O $HOME/qt/qt.exe http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-windows-x86-mingw482_opengl-5.3.2.exe'
  - bash -c '[ -d $HOME/qt/Tools ] || wine $HOME/qt/qt.exe --dump-binary-data -o $HOME/qt/OUT'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.53.win32_mingw482/5.3.2-0i686-4.8.2-release-posix-dwarf-rt_v3-rev3-runtime.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.53.win32_mingw482/5.3.2-0icu_52_1_mingw_builds_32_4_8_2_posix_dwarf.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.53.win32_mingw482/5.3.2-0qt5_essentials.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.53.win32_mingw482/5.3.2-0qt5_addons.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.tools.win32_mingw482/4.8.2i686-4.8.2-release-posix-dwarf-rt_v3-rev3.7z -o$HOME/qt'
  - rm -rf $HOME/qt/OUT
  - rm -f $HOME/qt/qt.exe
  - echo "[Paths]" > $HOME/qt/5.3/mingw482_32/bin/qt.conf
  - echo "Prefix=.." >> $HOME/qt/5.3/mingw482_32/bin/qt.conf
  - echo '[HKEY_CURRENT_USER\Environment]' > $HOME/qt/temp.reg
  - echo '"QMAKESPEC"="BASEDIR\\5.3\\mingw482_32\\mkspecs\\win32-g++"' >> $HOME/qt/temp.reg
  - echo '"QTDIR"="BASEDIR\\5.3\\mingw482_32"' >> $HOME/qt/temp.reg
  - echo '"PATH"="BASEDIR\\Tools\\mingw482_32\\libexec\\gcc\\i686-w64-mingw32;BASEDIR\\Tools\\mingw482_32\\bin;BASEDIR\\5.3\\mingw482_32\\bin"' >> $HOME/qt/temp.reg
  - sed -i "s.BASEDIR.Z:$HOME/qt.g" $HOME/qt/temp.reg
  - sed -i 's./.\\\\.g' $HOME/qt/temp.reg
  - wine regedit $HOME/qt/temp.reg
script:
  - cd zeal
  - date +%Y%m%d > VERSION
  # a bit ugly version updating:
  - grep -v ZEAL_VERSION zeal.pro > zeal.pro.noversion
  - mv zeal.pro.noversion zeal.pro
  - echo 'DEFINES += ZEAL_VERSION=\\\"'`cat VERSION`'\\\"' >> zeal.pro
  - wine qmake
  - wine mingw32-make
  - mkdir zeal-$(cat VERSION)
  - cp release/zeal.exe zeal-$(cat VERSION)
  - cp -r icons zeal-$(cat VERSION)
  - wget -nv https://bitbucket.org/jerzykozera/zeal-win32-binary-downloads/downloads/bsdtar.exe -O zeal-$(cat VERSION)/bsdtar.exe
  - wget -nv https://bitbucket.org/jerzykozera/zeal-win32-binary-downloads/downloads/bzip2.dll -O zeal-$(cat VERSION)/bzip2.dll
  - wget -nv https://bitbucket.org/jerzykozera/zeal-win32-binary-downloads/downloads/zlib1.dll -O zeal-$(cat VERSION)/zlib1.dll
  - mkdir zeal-$(cat VERSION)/imageformats
  - mkdir zeal-$(cat VERSION)/platforms
  - mkdir zeal-$(cat VERSION)/sqldrivers
  - cp $HOME/qt/Tools/mingw482_32/opt/bin/ssleay32.dll zeal-$(cat VERSION)
  - cp $HOME/qt/Tools/mingw482_32/opt/bin/libeay32.dll zeal-$(cat VERSION)
  - cp $HOME/qt/5.3/mingw482_32/plugins/imageformats/qico.dll zeal-$(cat VERSION)/imageformats
  - cp $HOME/qt/5.3/mingw482_32/plugins/platforms/qwindows.dll zeal-$(cat VERSION)/platforms
  - cp $HOME/qt/5.3/mingw482_32/plugins/sqldrivers/qsqlite.dll zeal-$(cat VERSION)/sqldrivers
  - cp $HOME/qt/5.3/mingw482_32/bin/libstdc++-6.dll zeal-$(cat VERSION)
  - cp $HOME/qt/5.3/mingw482_32/bin/libgcc_s_dw2-1.dll zeal-$(cat VERSION)
  - cp $HOME/qt/5.3/mingw482_32/bin/libwinpthread-1.dll zeal-$(cat VERSION)
  - cp $HOME/qt/5.3/mingw482_32/bin/icu*.dll zeal-$(cat VERSION)
  - for l in Core Gui Multimedia MultimediaWidgets Network OpenGL Qml Quick Sql WebKit WebKitWidgets Widgets Xml Positioning PrintSupport Sensors; do cp $HOME/qt/5.3/mingw482_32/bin/Qt5$l.dll zeal-$(cat VERSION); done
  - rm -f zeal*.zip
  - zip -r zeal-$(cat VERSION).zip zeal-$(cat VERSION)
  - bash -c 'curl --header "Content-Type:application/octet-stream" --data-binary @zeal-$(cat VERSION).zip $ZEAL_UPLOAD_URL || true'
  - rm -rf zeal-*

env:
  global:
    - secure: A4hzif8DQe4sBHYAFYDCg2Ygs4vkZTw12vJAQyrPNfWNNJlJiCERtzexv2T10j+HoNKs1hEduZYBO0FYUvlLsEVfIoFCLCsJq2oKmv3BCtaRWHnQy6ClCzm4UOgJFjOC1jW6zJJKnrFrsoKbqLDyNkBOG8EgDxHYQfeDUmdFk1NEBhJ8pyp4AG8sv0+VWBWFNL0jyI9waLQYmvej5UesJd+FUX+WVt8nUJIgR71XwORPuPEzEOPMvowzouJysG4sPS5q7wLjbC5eGLoaHIvmA03PW8kfv9YZBOJ9mn63ScaQB5gPVaDfQyoP3wGGO31IyxjdngyUMpCV3Dv1v//9/A==