~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
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 curl
  # Install Qt
  - 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.io/official_releases/qt/5.4/5.4.0/qt-opensource-windows-x86-mingw491_opengl-5.4.0.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.54.win32_mingw491/5.4.0-1i686-4.9.1-release-posix-dwarf-rt_v3-rev2-runtime.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.54.win32_mingw491/5.4.0-1icu_53_1_mingw_builds_4_9_1_posix_dwarf_32.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.54.win32_mingw491/5.4.0-1qt5_addons.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.54.win32_mingw491/5.4.0-1qt5_essentials.7z -o$HOME/qt'
  - bash -c '[ -d $HOME/qt/Tools ] || 7z x $HOME/qt/OUT/qt.tools.win32_mingw491/4.9.1-2i686-4.9.1-release-posix-dwarf-rt_v3-rev2.7z -o$HOME/qt'
  - rm -rf $HOME/qt/OUT
  - rm -f $HOME/qt/qt.exe
  # Install libarchive headers and library
  - wget -nv https://bitbucket.org/zealdocs/zeal-win32-binary-downloads/downloads/libarchive-3.1.2-win32-mingw491.7z
  - bash -c '[ -f $HOME/qt/Tools/mingw491_32/i686-w64-mingw32/include/archive.h ] || 7z x libarchive-3.1.2-win32-mingw491.7z -o$HOME/qt/Tools/mingw491_32/i686-w64-mingw32'
  - rm -r libarchive-3.1.2-win32-mingw491.7z
  # Setup environment
  - echo "[Paths]" > $HOME/qt/5.4/mingw491_32/bin/qt.conf
  - echo "Prefix=.." >> $HOME/qt/5.4/mingw491_32/bin/qt.conf
  - echo '[HKEY_CURRENT_USER\Environment]' > $HOME/qt/temp.reg
  - echo '"QMAKESPEC"="BASEDIR\\5.4\\mingw491_32\\mkspecs\\win32-g++"' >> $HOME/qt/temp.reg
  - echo '"QTDIR"="BASEDIR\\5.4\\mingw491_32"' >> $HOME/qt/temp.reg
  - echo '"PATH"="BASEDIR\\Tools\\mingw491_32\\libexec\\gcc\\i686-w64-mingw32;BASEDIR\\Tools\\mingw491_32\\bin;BASEDIR\\5.4\\mingw491_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:
  - export ZEAL_VERSION=`date +%Y%m%d`
  - wine qmake
  - wine mingw32-make
  - cd src
  - mkdir zeal-$ZEAL_VERSION
  - cp release/zeal.exe zeal-$ZEAL_VERSION
  - cp -r icons zeal-$ZEAL_VERSION
  - mkdir zeal-$ZEAL_VERSION/imageformats
  - mkdir zeal-$ZEAL_VERSION/platforms
  - mkdir zeal-$ZEAL_VERSION/sqldrivers
  - cp $HOME/qt/Tools/mingw491_32/opt/bin/ssleay32.dll zeal-$ZEAL_VERSION
  - cp $HOME/qt/Tools/mingw491_32/opt/bin/libeay32.dll zeal-$ZEAL_VERSION
  - for l in gif ico jpeg tiff; do cp $HOME/qt/5.4/mingw491_32/plugins/imageformats/q$l.dll zeal-$ZEAL_VERSION/imageformats; done
  - cp $HOME/qt/5.4/mingw491_32/plugins/platforms/qwindows.dll zeal-$ZEAL_VERSION/platforms
  - cp $HOME/qt/5.4/mingw491_32/plugins/sqldrivers/qsqlite.dll zeal-$ZEAL_VERSION/sqldrivers
  - cp $HOME/qt/5.4/mingw491_32/bin/libstdc++-6.dll zeal-$ZEAL_VERSION
  - cp $HOME/qt/5.4/mingw491_32/bin/libgcc_s_dw2-1.dll zeal-$ZEAL_VERSION
  - cp $HOME/qt/5.4/mingw491_32/bin/libwinpthread-1.dll zeal-$ZEAL_VERSION
  - cp $HOME/qt/5.4/mingw491_32/bin/icu*.dll zeal-$ZEAL_VERSION
  - for l in Core Gui Multimedia MultimediaWidgets Network OpenGL Qml Quick Sql WebKit WebKitWidgets WebChannel Widgets Xml Positioning PrintSupport Sensors; do cp $HOME/qt/5.4/mingw491_32/bin/Qt5$l.dll zeal-$ZEAL_VERSION; done
  - rm -f zeal*.zip
  - zip -r zeal-$ZEAL_VERSION.zip zeal-$ZEAL_VERSION
  - bash -c 'curl --header "Content-Type:application/octet-stream" --data-binary @zeal-$ZEAL_VERSION.zip $ZEAL_UPLOAD_URL || true'
  - rm -rf zeal-*

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