Skip to content
This repository
Newer
Older
100644 34 lines (29 sloc) 1.177 kb
24b5a341 » avsej
2012-02-22 Ruby gem infrastructure
1 # Author:: Couchbase <info@couchbase.com>
2 # Copyright:: 2012 Couchbase, Inc.
3 # License:: Apache License, Version 2.0
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
18 require 'rake/testtask'
19 require 'rake/clean'
20
21 rule 'test/CouchbaseMock.jar' do |task|
c5840f65 » avsej
2013-02-19 Reduce development dependencies and update jar version
22 jar_path = "0.5-SNAPSHOT/CouchbaseMock-0.5-20120726.220757-19.jar"
24b5a341 » avsej
2012-02-22 Ruby gem infrastructure
23 sh %{wget -q -O test/CouchbaseMock.jar http://files.couchbase.com/maven2/org/couchbase/mock/CouchbaseMock/#{jar_path}}
24 end
25
26 CLOBBER << 'test/CouchbaseMock.jar'
27
28 Rake::TestTask.new do |test|
29 test.libs << "test" << "."
30 test.pattern = 'test/test_*.rb'
31 test.options = '--verbose'
32 end
33
34 Rake::Task['test'].prerequisites.unshift('test/CouchbaseMock.jar')
Something went wrong with that request. Please try again.