qtutils: simplify the BlockSignals implementation
[git-cola.git] / contrib / build-git-cola.yaml
blobea1fafddc061dd8f0924008557f52c3b6268bfb7
1 # Based on a script originally by Aaron Cook <cookacounty@gmail.com>
3 # This script will build git-cola on an older Linux distribution, e.g. RHEL 5.
4 # Replace COLA_PREFIX with your path to install somewhere else.
5 # Set NUM_JOBS to control the number of cores used to build.
6 # This script defaults to 2.
8 # To run git cola, use it directly through $COLA_PREFIX/bin/git-cola.
9 # There is also a softlink at $COLA_PREFIX/bin/cola.
10 # You can add the $COLA_PREFIX/bin to your PATH or softlink git-cola (or cola)
11 # from a directory that is already in your PATH.
13 language: python
15 python:
16   - "2.7"
18 env:
19   - PATH="$PWD/local/git-cola/bin":"$PATH" COLA_PREFIX="$PWD/local/git-cola" NUM_JOBS=4
21 install:
22   - mkdir -p local/git-cola
23   - mkdir -p local/sandbox
24   - cd local/sandbox
26   # Python
27   - wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
28   - tar xzf Python-2.7.11.tgz
29   - cd Python-2.7.11
30   - ./configure --prefix=$COLA_PREFIX --enable-unicode=ucs4
31   - make -j $NUM_JOBS
32   - make install
33   - cd ..
35   # Qt4
36   - wget https://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
37   - tar xzf qt-everywhere-opensource-src-4.8.6.tar.gz
38   - cd qt-everywhere-opensource-src-4.8.6
39   - echo yes | ./configure -prefix "$COLA_PREFIX" -opensource -no-qt3support -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg
40   - make -j $NUM_JOBS
41   - make install
42   - cd ..
44   # SIP
45   - wget "http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz"
46   - tar xzf sip-4.16.5.tar.gz
47   - cd sip-4.16.5
48   - python ./configure.py
49   - make -j $NUM_JOBS
50   - make install
51   - cd ..
53   # PyQt4
54   - wget "http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz"
55   - tar xzf PyQt-x11-gpl-4.11.3.tar.gz
56   - cd PyQt-x11-gpl-4.11.3
57   - python ./configure.py -q "$COLA_PREFIX/bin/qmake" --confirm-license --no-designer-plugin --no-qsci-api --no-timestamp
58   - make -j $NUM_JOBS
59   - make install
60   - cd ..
62   # Git Cola
63   - cd ../..
64   - make all
65   - make doc
66   - make prefix="$COLA_PREFIX" install install-doc