This repository has been archived by the owner on Oct 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
17 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 |
---|---|---|
|
@@ -30,3 +30,11 @@ m4 | |
*gcno | ||
html | ||
coverage.info | ||
|
||
# packaging | ||
*.rpm | ||
*.deb | ||
usr | ||
|
||
# generated files | ||
include/plustache/version.h |
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,16 +1,34 @@ | ||
language: cpp | ||
script: autoreconf -i && ./configure --enable-coverage && make test | ||
script: | ||
- autoreconf -i | ||
- ./configure --enable-coverage | ||
- make ci | ||
install: | ||
- gem install fpm | ||
- gem install package_cloud | ||
before_script: | ||
- ./utils/build_gtest.sh | ||
- gem install coveralls-lcov | ||
- ./utils/build_gtest.sh | ||
- gem install coveralls-lcov | ||
after_success: | ||
- curl http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz | tar xz | ||
- export PATH=$PATH:`pwd`/lcov-1.11/bin | ||
- make coverage.info | ||
- coveralls-lcov coverage.info | ||
- curl http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz | tar | ||
xz | ||
- export PATH=$PATH:`pwd`/lcov-1.11/bin | ||
- make coverage.info | ||
- coveralls-lcov coverage.info | ||
sudo: false | ||
addons: | ||
apt: | ||
packages: | ||
- build-essential | ||
- libboost-regex-dev | ||
- rpm | ||
- valgrind | ||
deploy: | ||
provider: script | ||
script: ./autogen.sh && ./configure --prefix=`pwd`/usr && make deploy-packages | ||
on: | ||
tags: true | ||
condition: $CXX = g++ | ||
env: | ||
global: | ||
secure: WkzClT13gpXdjHLbdrPw3BC5COE7CC9SGAeU5hcl6T+cFS2Xs9qVmdG3LuKtWYZZCkDIa5b6iDisYrl6ZnXhboJ2sbmNDijCEHbUCj2qsqw8Txcf09LuFZYp0LkjwwjP1KLKPbe2r2v5TaHKku/cq4SroclkiNKgb0/q+H92qak= |
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
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,28 @@ | ||
# make tasks to create and publish packages | ||
.PHONY: rpm deb packages deploy-packages | ||
|
||
local-install: | ||
$(MAKE) install PREFIX=usr | ||
|
||
NAME=plustache | ||
VERSION = $(shell git describe --tags --always --dirty) | ||
BUILDER = $(shell echo "`git config user.name` <`git config user.email`>") | ||
PKG_RELEASE ?= 1 | ||
PROJECT_URL="https://github.com/mrtazz/$(NAME)" | ||
FPM_FLAGS= --name $(NAME) --version $(VERSION) --iteration $(PKG_RELEASE) \ | ||
--epoch 1 --license MIT --maintainer "$(BUILDER)" --url $(PROJECT_URL) \ | ||
--vendor mrtazz --description "{{mustaches}} for C++" \ | ||
--after-install utils/runldconfig.sh --after-remove utils/runldconfig.sh | ||
|
||
rpm: | ||
fpm -t rpm -s dir $(FPM_FLAGS) --depends boost-regex usr | ||
|
||
deb: | ||
fpm -t deb -s dir $(FPM_FLAGS) --depends libboost-regex usr | ||
|
||
packages: local-install rpm deb | ||
|
||
deploy-packages: packages | ||
package_cloud push mrtazz/$(NAME)/el/7 *.rpm | ||
package_cloud push mrtazz/$(NAME)/debian/wheezy *.deb | ||
package_cloud push mrtazz/$(NAME)/ubuntu/trusty *.deb |
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,2 @@ | ||
#!/bin/sh | ||
autoreconf --force --install |
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
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,6 @@ | ||
changecom(`@@')dnl | ||
#ifndef INCLUDE_PLUSTACHE_VERSION_H_ | ||
#define INCLUDE_PLUSTACHE_VERSION_H_ | ||
#define PLUSTACHE_VERSION "M4_PLUSTACHE_VERSION" | ||
#endif // INCLUDE_PLUSTACHE_VERSION_H_ | ||
changecom(`#')dnl |
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,2 @@ | ||
#!/bin/sh | ||
/sbin/ldconfig |