-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (35 loc) · 800 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require_relative "tasks/populate"
namespace :code do
namespace :deps do
desc "Install deps pkgs"
task :add do
# Remove prg name from global ARGV
ARGV.shift
opts = ARGV.join(" ")
sh "dep ensure -add #{opts}"
end
desc "Update and sync deps pkgs"
task :sync do
sh "dep ensure"
end
end
namespace :test do
desc "Start testing env"
task "prepare" do
sh "docker-compose up -d"
end
desc "Add test entries"
task "seed" do
seed("put")
end
desc "Run tests"
task "run" do
sh "/usr/local/bin/go test -v -timeout 30s github.com/lktslionel/awssel/env -run ^TestSSMStore$"
end
desc "Clean testing env"
task "clean" do
seed("delete")
sh "docker-compose down"
end
end
end