mirror of
https://github.com/jackc/pgx.git
synced 2025-05-28 10:12:08 +00:00
15 lines
208 B
Ruby
15 lines
208 B
Ruby
require 'rake/clean'
|
|
|
|
ERB = FileList['*.go.erb']
|
|
GO = ERB.ext
|
|
CLEAN.include(GO)
|
|
|
|
rule '.go' => '.go.erb' do |t|
|
|
sh "erb #{t.source} > #{t.name}"
|
|
end
|
|
|
|
desc "Run tests"
|
|
task :test => GO do
|
|
sh "go test"
|
|
end
|