Skip to content

Commit 87056cd

Browse files
committed
Add travis
1 parent ef27615 commit 87056cd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: ruby
2+
rvm:
3+
- 2.1.2

Rakefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
require 'rspec/core/rake_task'
2-
31
BUNDLE_ID = "co.randompaper.qiita.alfred"
42
PACKAGE_FILE = "info.plist"
53

64
ALFRED_WORKFLOW_PATH = ENV['ALFRED_WORKFLOW_PATH'] || File.expand_path('~/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows')
75

8-
task :default => [:spec]
6+
task :default => :spec
97

108
desc "Link to Alfred"
119
task :link do
@@ -16,3 +14,11 @@ desc "Unlink from Alfred"
1614
task :unlink do
1715
rm File.join(ALFRED_WORKFLOW_PATH, BUNDLE_ID)
1816
end
17+
18+
require 'rspec/core/rake_task'
19+
20+
desc "Run all specs"
21+
RSpec::Core::RakeTask.new(:spec) do |t|
22+
t.rspec_opts = %w[--color]
23+
t.verbose = false
24+
end

0 commit comments

Comments
 (0)