.packer.yml 1.58 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 24 25
    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
        - make -j3
        - cd ../../
hboyet's avatar
hboyet committed
26 27 28
        - ./autogen.sh
        - ./configure --without-alsa --without-pulse --without-dbus --prefix=%(prefix_path)s
        - make install -j1
29 30 31
        - cd ..
        - echo "LRC"
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
32 33
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-lrc.git ring-lrc
        - cd ring-lrc
34 35
        - mkdir build
        - cd build
36
        - 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
37
        - make install -j1
38
        - cd ../../
39 40 41
        - echo "Client"
        - git clone https://gerrit-ring.savoirfairelinux.com/ring-client-macosx ring-client-macosx
        - cd ring-client-macosx
hboyet's avatar
hboyet committed
42 43
        - mkdir build
        - cd build
44 45
        - export CMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.4.0
        - cmake ../ -DCMAKE_INSTALL_PREFIX=%(prefix_path)s
hboyet's avatar
hboyet committed
46
        - make install -j1
47
        - cpack -G DragNDrop Ring
hboyet's avatar
hboyet committed
48
    transfer:
49 50
        files:
            - ring-client-macosx/build/Ring.dmg