New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working Travis Build #29
base: master
Are you sure you want to change the base?
Changes from all commits
86247d8
ac1b58b
965637d
8570217
05689fe
97f69a2
fd5c1c2
d4c2985
c55435a
d7b40fb
e060e76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.vscode/ | ||
.git/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
*.o | ||
*.so | ||
*.DS_Store | ||
fRanz/inst/librdkafka* | ||
franz/src/librdkafa | ||
franz/src/pkgconfig | ||
librdkafka* |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,5 @@ result | |
# [[1]]$payload | ||
# [1] "My First Message" | ||
``` | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM rocker/r-base | ||
ARG test | ||
|
||
# For roxygen2 | ||
RUN apt-get update && apt-get install -y libxml2-dev | ||
RUN Rscript -e "install.packages(c('Rcpp','R6','testthat','uuid','roxygen2'))" | ||
|
||
RUN echo "$test" | ||
COPY ./fRanz fRanz | ||
|
||
RUN R CMD build fRanz | ||
RUN R CMD check --install-args='--no-clean-on-error' fRanz_0.1.0.tar.gz || cat fRanz.Rcheck/00install.out |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(KafkaBroker) | ||
export(KafkaConsumer) | ||
export(KafkaProducer) | ||
importFrom(R6,R6Class) | ||
importFrom(Rcpp,sourceCpp) | ||
useDynLib(fRanz) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -eo | ||
|
||
rm -r librdkafka-1.0.0 librdkafka-1.0.0.tar.gz | ||
rm -r src/librdkafka |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -eo | ||
|
||
|
||
### Install librdkafka. Check simply if the library exists if need be | ||
if [ ! -d "src/librdkafka" ]; then | ||
wget https://github.com/edenhill/librdkafka/archive/v1.0.0.tar.gz -O librdkafka-1.0.0.tar.gz && \ | ||
tar xzf librdkafka-1.0.0.tar.gz && \ | ||
INSTALL_PATH="$PWD/src/librdkafka" && \ | ||
mkdir $INSTALL_PATH &&\ | ||
mv librdkafka-1.0.0/* $INSTALL_PATH && \ | ||
cd $INSTALL_PATH && \ | ||
./configure --prefix=. && make && make install && \ | ||
cd ../.. && | ||
cp -r src/librdkafka/lib inst/ && \ | ||
cp -r inst/lib inst/libs && \ | ||
rm librdkafka-1.0.0.tar.gz; | ||
else | ||
echo "Detected librdkafka in src" | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
INSTALLDIR = $(HOME)/.fRanz/librdkafka | ||
LIBRDKAFKADIR = $(PWD)/../inst/librdkafka-0.11.6 | ||
|
||
PKG_LIBS = -L$(INSTALLDIR)/src-cpp -lrdkafka++ | ||
PKG_CXXFLAGS = -std=c++11 -I$(INSTALLDIR)/src-cpp | ||
|
||
.PHONY: all install_librdkadka | ||
|
||
all: install_librdkadka | ||
|
||
install_librdkadka: | ||
if [ ! -s $(INSTALLDIR)/src-cpp/librdkafka++.a ] ; \ | ||
then \ | ||
mkdir -p $(INSTALLDIR) && \ | ||
cd $(shell dirname $(LIBRDKAFKADIR)) && \ | ||
tar xzf $(LIBRDKAFKADIR).tar.gz && \ | ||
cd $(LIBRDKAFKADIR) && \ | ||
./configure && \ | ||
$(MAKE) && \ | ||
$(MAKE) install && \ | ||
mv * $(INSTALLDIR) ; \ | ||
fi | ||
LIBRDKAFKA_LOC = librdkafka | ||
|
||
PKG_LIBS = -L$(LIBRDKAFKA_LOC)/lib -lrdkafka++ | ||
PKG_CXXFLAGS = -I$(LIBRDKAFKA_LOC)/include | ||
CXX_STD=CXX11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
osx doesn't work w/ docker compose