|
1 | 1 | language: cpp
|
2 |
| - |
3 |
| -matrix: |
4 |
| - include: |
5 |
| - - dist: trusty |
6 |
| - compiler: gcc |
7 |
| - - os: osx |
8 |
| - compiler: clang |
9 |
| - |
10 | 2 | install:
|
11 |
| - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; |
12 |
| - then |
13 |
| - sudo apt-get -qq update; |
14 |
| - sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev; |
15 |
| - sudo apt-get install libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev librtlsdr-dev; |
16 |
| - sudo apt-get install rpm; |
17 |
| - fi |
18 |
| - |
19 |
| -# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install wxmac --devel; fi |
20 |
| -# We do not use wxmac, everything comes in the prebuilt tarball downloaded bellow |
21 |
| - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; |
22 |
| - then |
23 |
| - brew install cairo libexif libarchive portaudio; |
24 |
| - wget http://opencpn.navnux.org/build_deps/cairo_macos107.tar.xz; |
25 |
| - tar xJf cairo_macos107.tar.xz -C /tmp; |
26 |
| - wget http://opencpn.navnux.org/build_deps/wx_opencpn_macos107.tar.xz; |
27 |
| - tar xJf wx_opencpn_macos107.tar.xz -C /tmp; |
28 |
| - wget http://opencpn.navnux.org/build_deps/libarchive_macos107.tar.xz; |
29 |
| - tar xJf libarchive_macos107.tar.xz -C /tmp; |
30 |
| - export PATH="/usr/local/opt/gettext/bin:$PATH"; |
31 |
| - echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile; |
32 |
| - wget http://s.sudre.free.fr/Software/files/Packages.dmg; |
33 |
| - hdiutil attach Packages.dmg; |
34 |
| - sudo installer -pkg "/Volumes/Packages 1.2.4/Install Packages.pkg" -target "/"; |
35 |
| - fi |
36 |
| -# We install cairo and libarchive from Homebrew to pull in the dependencies, but use the custom Lion compatible build later. |
37 |
| - |
| 3 | + - sudo apt-get -qq update |
| 4 | + - sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev |
| 5 | + - sudo apt-get install libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev librtlsdr-dev |
| 6 | + - sudo apt-get install rpm |
38 | 7 | script:
|
39 | 8 | - if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
|
40 | 9 | then
|
41 | 10 | echo "Don't build on coverty_scan branch.";
|
42 | 11 | exit 0;
|
43 | 12 | fi
|
44 | 13 | - mkdir build && cd build
|
45 |
| - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; |
46 |
| - then |
47 |
| - cmake -DCMAKE_BUILD_TYPE=Release ../; |
48 |
| - make -sj2 package; |
49 |
| - fi |
50 |
| - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; |
51 |
| - then |
52 |
| - cmake -DOCPN_USE_LIBCPP=ON -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx_opencpn_macos107/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx_opencpn_macos107" -DLibArchive_INCLUDE_DIR=/tmp/libarchive_macos107/include -DLibArchive_LIBRARY=/tmp/libarchive_macos107/lib/libarchive.dylib -DCAIRO_INCLUDE_DIR=/tmp/cairo_macos107/include -DCAIRO_LIBRARY=/tmp/cairo_macos107/lib/libcairo.dylib -DCMAKE_INSTALL_PREFIX=/tmp/opencpn ..; |
53 |
| - make -s; |
54 |
| - mkdir -p /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; |
55 |
| - chmod 644 /usr/local/lib/lib*.dylib; |
56 |
| - cp /usr/local/lib/libportaudio.2.dylib .; |
57 |
| - cp /tmp/libarchive_macos107/lib/libarchive.16.dylib /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; |
58 |
| - cp /tmp/cairo_macos107/lib/libcairo.2.dylib /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; |
59 |
| - make install; |
60 |
| -# librtlsdr.0.dylib still missing |
61 |
| - #make create-pkg; |
62 |
| - fi |
| 14 | + - cmake -DCMAKE_BUILD_TYPE=Release ../ |
| 15 | + - make -j2 package |
63 | 16 |
|
64 | 17 | notifications:
|
65 | 18 | email: false
|
|
0 commit comments