-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #397 from jongough/master_1.5
Master 1.5
- Loading branch information
Showing
522 changed files
with
120,301 additions
and
68,014 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,98 @@ | ||
language: cpp | ||
matrix: | ||
include: | ||
- dist: trusty | ||
compiler: gcc | ||
- os: osx | ||
compiler: clang | ||
install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev | ||
- sudo apt-get install libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev | ||
- sudo apt-get install rpm | ||
script: | ||
- if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]]; | ||
then | ||
echo "Don't build on coverty_scan branch."; | ||
exit 0; | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; | ||
then | ||
sudo apt-get -qq update; | ||
sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev; | ||
sudo apt-get install libexpat1-dev libcairo2-dev; | ||
sudo apt-get install rpm; | ||
fi | ||
- mkdir build && cd build | ||
- cmake -DCMAKE_BUILD_TYPE=Release ../ | ||
# - make -sj2 package | ||
- make -sj2 | ||
|
||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; | ||
then | ||
brew install cairo libexif xz libarchive; | ||
wget http://opencpn.navnux.org/build_deps/wx312_opencpn50_macos109.tar.xz; | ||
tar xJf wx312_opencpn50_macos109.tar.xz -C /tmp; export PATH="/usr/local/opt/gettext/bin:$PATH"; | ||
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile; | ||
wget http://opencpn.navnux.org/build_deps/Packages.dmg; | ||
hdiutil attach Packages.dmg; | ||
sudo installer -pkg "/Volumes/Packages 1.2.5/Install Packages.pkg" -target "/"; | ||
fi | ||
script: | ||
- if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]]; | ||
then | ||
echo "Don't build on coverty_scan branch."; | ||
exit 0; | ||
fi | ||
- mkdir build && cd build | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; | ||
then | ||
cmake -DCMAKE_BUILD_TYPE=Release ../ && make -sj2 && sudo make package; | ||
fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; | ||
then | ||
cmake -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx312_opencpn50_macos109/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx312_opencpn50_macos109" -DCMAKE_INSTALL_PREFIX=/tmp/opencpn -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 .. && make -sj2 && make create-pkg; | ||
fi | ||
- ls -l; | ||
notifications: | ||
email: false | ||
|
||
email: false | ||
git: | ||
depth: 10 | ||
|
||
depth: 10 | ||
before_install: | ||
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi | ||
- if [ "$CXX" = "g++" ]; | ||
then | ||
export CXX="g++-6" CC="gcc-6"; | ||
fi | ||
- if [ "${#OAUTH_ACCESS_TOKEN}" != 0 ]; | ||
then | ||
(echo OAUTH_ACCESS_TOKEN=${OAUTH_ACCESS_TOKEN} > ~/.dropbox_uploader); | ||
fi | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-6 | ||
- g++-6 | ||
|
||
# Set encrypted variable 'GitHub_auth_token' in Travis repo settings to deploy packages | ||
# for tagged commits to GitHub Releases. | ||
- gcc-6 | ||
- g++-6 | ||
deploy: | ||
- provider: releases | ||
api_key: $GitHub_auth_token | ||
file_glob: true | ||
file: $TRAVIS_BUILD_DIR/build/*.{deb,rpm,dmg,txz,pkg.tar.xz} | ||
skip_cleanup: true | ||
on: # Set deploy conditions | ||
# Deploy only when tag is specified | ||
tags: true | ||
# or his branch | ||
branch: dev | ||
matrix: | ||
- provider: script | ||
file: "$TRAVIS_BUILD_DIR/build/*.{deb,rpm,dmg,pkg,txz,pkg.tar.xz}" | ||
script: if [ -f ~/.dropbox_uploader ] ; then echo "OSX"; if [ "$TRAVIS_OS_NAME" | ||
= "osx" ] ; then echo "upload pkg"; bash ../dropbox_uploader.sh upload $TRAVIS_BUILD_DIR/build/*.pkg | ||
/ ; fi; echo "Linux"; if [ "$TRAVIS_OS_NAME" = "linux" ] ; then echo "upload | ||
rpm"; bash ../dropbox_uploader.sh upload $TRAVIS_BUILD_DIR/build/*.rpm /; echo | ||
"upload deb"; bash ../dropbox_uploader.sh upload $TRAVIS_BUILD_DIR/build/*.deb | ||
/; fi; fi | ||
skip_cleanup: true | ||
on: # Set Deploy conditions | ||
# Deploy only when tag is not specified | ||
tags: false | ||
# or this branch | ||
branch: master_1.5 | ||
# and only when API token is set | ||
# condition: "${#GitHub_auth_token} != 0 && $BUILD_TYPE = Release" | ||
condition: "${#GitHub_auth_token} != 0" | ||
# condition: ""${#OAUTH_ACCESS_TOKEN} != 0 && $BUILD_TYPE = Release | ||
condition: "${#OAUTH_ACCESS_TOKEN} != 0" | ||
- provider: launchpad | ||
slug: "~jonsgough/opencpn-plugin-draw/+git/ocpn_draw_pi" | ||
oauth_token_secret: | ||
secure: IfEUz16VPprAn/N00bPI08Nm8JCJ17IVbQzm9L1Vm+LEI/ZCuk40gRyeAxLkQm0X8YFgPJbm5mUocDIgAmdzQYSOpCIaz+WRUNMuKJF8TaiuxBmz7vMLq8NTYMNyNnDR47l8McWOGI24VWCZDpSIwqr3vsa6r/6B2d1OnNlGJK38EdIokR+FeOv1MH7UBQJINgpirC1Jwb9Pbnu1i1/88pXhNuSGOKJ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6GMOR29lqetTpxyQ8nEC0NpEzGejPwCEtCyXnhdx2Y9tXofSlzvaz5yJ0oRvKxZsWVNIteep/UhaxkMciOZU= | ||
skip_cleanup: true | ||
on: # Set Deploy conditions | ||
# Deploy only when tag is not specified | ||
# tags: false | ||
# or this branch | ||
#branches: | ||
# only: | ||
# - master | ||
# - master_1.5 | ||
all_branches: true | ||
condition: "$TRAVIS_OS_NAME = linux" | ||
repo: jongough/ocpn_draw_pi |
Oops, something went wrong.