Skip to content

Commit

Permalink
fix build rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Jul 9, 2017
1 parent a295278 commit 0258699
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 0258699

Please sign in to comment.