diff --git a/Rakefile b/Rakefile index d010f93..f0186bc 100644 --- a/Rakefile +++ b/Rakefile @@ -7,3 +7,10 @@ RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec' spec.rspec_opts = ['--color'] end + +desc "Build micbench core execs" +task :build_core => Dir["configure.ac", "src/*.[ch]"] do + sh "./autogen.sh" + sh "./configure" + sh "make" +end diff --git a/src/Makefile.am b/src/Makefile.am index 8aca61e..b7fb464 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -64,8 +64,8 @@ bin_PROGRAMS += micbench-btreplay micbench_btreplay_SOURCES = micbench-btreplay-main.c $(micbench_headers) micbench_btreplay_LDADD = libmicbench-btreplay.la libmicbench-utils.la -micbench_btreplay_LDFLAGS = -pthread $(GLIB_LIBS) libmicbench_btreplay_la_SOURCES = micbench-btreplay.c +libmicbench_btreplay_la_LDFLAGS = -pthread $(GLIB_LIBS) endif endif diff --git a/wercker.yml b/wercker.yml index af5eed0..14d5792 100644 --- a/wercker.yml +++ b/wercker.yml @@ -9,13 +9,19 @@ build: - script: name: install numactl code: | - apt-get install -y numactl + apt-get install -y numactl libnuma-dev libaio-dev libglib2.0-dev - script: name: switch ruby to 1.9.3 code: | source /etc/profile.d/rvm.sh rvm use 1.9.3 + - bundle-install + - script: + name: build core execs + code: | + bundle exec rake build_core + - script: name: run rspec code: |