.packer.yml 2.15 KB
Newer Older
1 2
osx:
    type: osx
3 4 5 6
    info:
        name: ring
        version: nightly
        release: 1
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    brew_deps:
        - automake
        - libtool
        - gettext
        - yasm
        - autoconf
        - pkg-config
        - qt5
        - llvm --with-clang --with-asan
    commands:
        - echo "Deamon"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-daemon ring-daemon
        - cd ring-daemon
        - cd contrib
        - mkdir native
        - cd native
        - ../bootstrap
hboyet's avatar
hboyet committed
24
        - echo "########################################################1"
25
        - make -j3
hboyet's avatar
hboyet committed
26
        - echo "########################################################2"
27
        - cd ../../
28
        - ./autogen.sh && ./configure --without-alsa --without-pulse --without-dbus --prefix=%(prefix_path)s
hboyet's avatar
hboyet committed
29
        - echo "########################################################3"
30
        - make install -j
hboyet's avatar
hboyet committed
31
        - echo "########################################################4"
32 33 34
        - cd ..
        - echo "LRC"
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
35 36
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-lrc.git ring-lrc
        - cd ring-lrc
37 38
        - mkdir build
        - cd build
39
        - cmake .. -DCMAKE_INSTALL_PREFIX=%(prefix_path)s -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++
hboyet's avatar
hboyet committed
40
        - echo "########################################################5"
41
        - make install
hboyet's avatar
hboyet committed
42
        - echo "########################################################6"
43
        - cd ../../
44 45 46 47 48 49
        - echo "Client"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-client-macosx ring-client-macosx
        - cd ring-client-macosx
        - mkdir build && cd build
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
        - cmake ../ -DCMAKE_INSTALL_PREFIX=%(prefix_path)s
hboyet's avatar
hboyet committed
50
        - echo "########################################################7"
51
        - make install -j
hboyet's avatar
hboyet committed
52
        - echo "########################################################8"
53
        - cpack -G DragNDrop Ring
hboyet's avatar
hboyet committed
54
    transfer:
55 56
        files:
            - ring-client-macosx/build/Ring.dmg