Skip to content

Commit

Permalink
Add README and travis project
Browse files Browse the repository at this point in the history
  • Loading branch information
metsma committed Dec 18, 2014
1 parent a572cca commit cd9551f
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
before_install: if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
echo;
else
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo add-apt-repository --yes ppa:kalakris/cmake;
sudo apt-get update -qq;
sudo apt-get install -y gcc-4.8 g++-4.8 cmake libxml-security-c-dev libssl-dev;
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90;
wget http://www.codesynthesis.com/download/xsd/4.0/linux-gnu/x86_64/xsd_4.0.0-1_amd64.deb;
sudo dpkg -i xsd_4.0.0-1_amd64.deb;
fi
script:
- mkdir build
- cd build
- cmake ..
- make

os:
- linux
- osx

env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "VTpLjRFkVZeqSiP/tea7b5WiMU+PjQJlpny8/QEYazRNhn/uie69aT8VvEdkpsUM1AEx8yPnNmVGShvoNNaOi/AoqynTIKgeGPCj44h6lCnPpByGVur0avc5WrRj2xBbPBBUw1rsL65wZ13MufmRLUwnmmVYQZ3qDBdpgZvCEhA="

addons:
coverity_scan:
project:
name: "open-eid/libdigidocpp"
description: "Build submitted via Travis CI"
notification_email: raul@metsma.ee
build_command_prepend: "mkdir coverity; cd coverity; cmake .."
build_command: make
branch_pattern: coverity_scan
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please read the [common contributing guidelines](https://github.com/open-eid/org/blob/master/CONTRIBUTING.md) before you continue!
71 changes: 71 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# libdigidocpp

* License: LGPL 2.1
* © Estonian Information System Authority

## Building
[![Build Status](https://travis-ci.org/open-eid/libdigidocpp.svg?branch=master)](https://travis-ci.org/open-eid/libdigidocpp)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/727/badge.svg)](https://scan.coverity.com/projects/727)

### Ubuntu

1. Install dependencies

sudo apt-get install cmake libxml-security-c-dev xsdcxx libssl-dev

2. Fetch the source

git clone --recursive https://github.com/open-eid/libdigidocpp
cd libdigidocpp

3. Configure

mkdir build
cd build
cmake ..

4. Build

make

5. Install

sudo make install

6. Execute

/usr/local/bin/digidoc-tool
### OSX

1. Install dependencies from [http://www.cmake.org](http://www.cmake.org)

sh prepare_osx_build_environment.sh all

2. Fetch the source

git clone --recursive https://github.com/open-eid/libdigidocpp
cd libdigidocpp

3. Configure

mkdir build
cd build
cmake ..

4. Build

make

5. Install

sudo make install

6. Execute

/usr/local/bin/digidoc-tool

## Support
Official builds are provided through official distribution point [installer.id.ee](https://installer.id.ee). If you want support, you need to be using official builds.

Source code is provided on "as is" terms with no warranty (see license for more information). Do not file Github issues with generic support requests.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ endif()

if( LIBDIGIDOC_FOUND )
list( APPEND digidocpp_SRCS DDoc.cpp )
include_directories( ${LIBDIGIDOC_INCLUDE_DIR} )
if( LIBDIGIDOC_LINKED )
list( APPEND digidocpp_DEFS LINKED_LIBDIGIDOC )
list( APPEND TARGET_LIBRARIES ${LIBDIGIDOC_LIBRARY} )
Expand Down Expand Up @@ -165,7 +166,6 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${OPENSSL_INCLUDE_DIR}
${LIBDIGIDOC_INCLUDE_DIR}
${XERCESC_INCLUDE_DIR}
${XMLSECURITYC_INCLUDE_DIRS}
${XSD_INCLUDE_DIR}
Expand Down

0 comments on commit cd9551f

Please sign in to comment.