forked from RooieDirk/NmeaConverter_pi
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add appveyor.yml .travis.yml Version.h
- Loading branch information
Showing
3 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
language: cpp | ||
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 librtlsdr-dev | ||
- sudo apt-get install rpm | ||
script: | ||
- if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]]; | ||
then | ||
echo "Don't build on coverty_scan branch."; | ||
exit 0; | ||
fi | ||
- mkdir build && cd build | ||
- cmake -DCMAKE_BUILD_TYPE=Release ../ | ||
- make -j2 package | ||
|
||
notifications: | ||
email: false | ||
|
||
git: | ||
depth: 10 | ||
|
||
before_install: | ||
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi | ||
addons: | ||
apt: | ||
sources: | ||
- 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. | ||
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 | ||
# and only when API token is set | ||
condition: "${#GitHub_auth_token} != 0" |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
clone_folder: c:\project\projections_pi | ||
shallow_clone: true | ||
image: | ||
- Visual Studio 2015 | ||
|
||
platform: | ||
# - x64 | ||
- Win32 | ||
|
||
configuration: Release | ||
test: OFF | ||
|
||
install: | ||
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86' | ||
|
||
# sent environment variables for wxWidgets | ||
- set WXWIN=C:\wxWidgets-3.0.2 | ||
- set wxWidgets_ROOT_DIR=%WXWIN% | ||
- set wxWidgets_LIB_DIR=%WXWIN%\lib\vc_dll | ||
- cmd: SET PATH=%PATH%;%WXWIN%;%wxWidgets_LIB_DIR%;C:\Program Files (x86)\Poedit\Gettexttools\bin; | ||
|
||
# install dependencies: | ||
- choco install poedit nsis -x86 | ||
|
||
# Download and unzip wxwidgets | ||
- ps: Start-FileDownload http://downloads.sourceforge.net/project/wxwindows/3.0.2/wxWidgets-3.0.2.zip | ||
- cmd: 7z x wxwidgets-3.0.2.zip -o%WXWIN% > null | ||
|
||
# some debugging information | ||
- set | ||
# - cmake --help | ||
|
||
# build wxWidgets | ||
- cmd: cd %WXWIN%\build\msw\ | ||
- cmd: nmake -f makefile.vc BUILD=release SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_ | ||
- cmd: nmake -f makefile.vc BUILD=debug SHARED=1 CFLAGS=/D_USING_V120_SDK71_ CXXFLAGS=/D_USING_V120_SDK71_ | ||
|
||
before_build: | ||
- cd c:\project\projections_pi | ||
- mkdir build | ||
- cd build | ||
- ps: Start-FileDownload https://downloads.sourceforge.net/project/opencpnplugins/opencpn_lib/4.2-vc120_xp/opencpn.lib | ||
- ps: Start-FileDownload https://downloads.sourceforge.net/project/opencpnplugins/opencpn_packaging_data/OpenCPN_buildwin.7z | ||
- cmd: 7z x -y OpenCPN_buildwin.7z -oc:\project\projections_pi | ||
- cmake -T v120_xp .. | ||
|
||
build_script: | ||
# - cmake --build . --config debug | ||
- cmake --build . --target package --config release | ||
|
||
artifacts: | ||
- path: 'build\*.exe' | ||
name: installer | ||
|
||
deploy: | ||
description: 'release created by AppVeyor CI' | ||
provider: GitHub | ||
auth_token: '%GitHub_auth_token%' | ||
artifact: installer | ||
draft: true | ||
prerelease: true | ||
on: | ||
appveyor_repo_tag: true # deploy on tag push only | ||
configuration: Release # Debug contains non-redist MS DLLs |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define PLUGIN_VERSION_MAJOR 0 | ||
#define PLUGIN_VERSION_MINOR 9 | ||
#define PLUGIN_VERSION_DATE "" |