Skip to content

Commit 168c148

Browse files
committed
Deploy tar.gz
1 parent 2f9fbe4 commit 168c148

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.travis.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,52 @@
11
sudo: required
22
services:
3-
- docker
3+
- docker
44
before_install: if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
55
./prepare_osx_build_environment.sh all;
66
else
77
sudo apt-get update -qq;
88
sudo apt-get install -y libxml-security-c-dev;
9-
wget http://www.codesynthesis.com/download/xsd/4.0/linux-gnu/x86_64/xsd_4.0.0-1_amd64.deb;
9+
wget http://www.codesynthesis.com/download/xsd/4.0/linux-gnu/x86_64/xsd_4.0.0-1_amd64.deb;
1010
sudo dpkg -i xsd_4.0.0-1_amd64.deb;
1111
fi
1212
script:
1313
- mkdir build
1414
- cd build
1515
- cmake ..
1616
- make
17+
- cd ..
1718

1819
os:
19-
- linux
20-
- osx
20+
- linux
21+
- osx
2122

2223
osx_image: xcode6.4
2324

2425
env:
2526
global:
26-
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
27-
# via the "travis encrypt" command using the project repo's public key
28-
- secure: "VTpLjRFkVZeqSiP/tea7b5WiMU+PjQJlpny8/QEYazRNhn/uie69aT8VvEdkpsUM1AEx8yPnNmVGShvoNNaOi/AoqynTIKgeGPCj44h6lCnPpByGVur0avc5WrRj2xBbPBBUw1rsL65wZ13MufmRLUwnmmVYQZ3qDBdpgZvCEhA="
29-
27+
- secure: VTpLjRFkVZeqSiP/tea7b5WiMU+PjQJlpny8/QEYazRNhn/uie69aT8VvEdkpsUM1AEx8yPnNmVGShvoNNaOi/AoqynTIKgeGPCj44h6lCnPpByGVur0avc5WrRj2xBbPBBUw1rsL65wZ13MufmRLUwnmmVYQZ3qDBdpgZvCEhA=
3028
addons:
3129
coverity_scan:
3230
project:
33-
name: "open-eid/libdigidocpp"
34-
description: "Build submitted via Travis CI"
31+
name: open-eid/libdigidocpp
32+
description: Build submitted via Travis CI
3533
notification_email: raul@metsma.ee
36-
build_command_prepend: "mkdir coverity; cd coverity; cmake .."
34+
build_command_prepend: mkdir coverity; cd coverity; cmake ..
3735
build_command: make
3836
branch_pattern: coverity_scan
37+
38+
before_deploy:
39+
- export VERSION=${TRAVIS_TAG:1}
40+
- rm -rf build
41+
- cd ..
42+
- mv libdigidocpp libdigidocpp-${VERSION}
43+
- tar czf libdigidocpp-${VERSION}.tar.gz --exclude-vcs libdigidocpp-${VERSION}
44+
deploy:
45+
provider: releases
46+
api_key:
47+
secure: CXl5yp2RQ1VpUWU3j8hsTrQ38TwShaUSIQoAAfHjEdMZvk5GAR0JFzrswpE2AWOEEDHsQV+66DHydqAnv4fYQlAZdXSc44PlNiIC3LV15sVdtoLLZhFBM/UWxDJ1tPMeU654d/SUeXWLd3CMHMrbOEyUA+ymUR1icmc8xHNGqpo=
48+
file: libdigidocpp-${VERSION}.tar.gz
49+
skip_cleanup: true
50+
on:
51+
tags: true
52+
condition: "$TRAVIS_OS_NAME = linux"

0 commit comments

Comments
 (0)