Skip to content

Commit

Permalink
Fixing the test_using_lesspainful_com script
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmaturana committed Mar 26, 2012
1 parent 99b0a85 commit 762d805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test_using_lesspainful_com.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby -wKU
require "rubygems"
require 'tempfile'
require 'json'

Expand All @@ -17,7 +18,7 @@ def is_json?(str)

archive_path = "#{Tempfile.new("archive").path}.zip"
puts "Creating zip file"
system ("zip -r -o #{archive_path} features && zip -j #{archive_path} bin/Test.apk")
system("zip -r -o #{archive_path} features && zip -j #{archive_path} bin/Test.apk")

puts "Uploading apk and features to www.lesspainful.com"
result = `curl -F "secret=#{secret}" -F "app=@#{apk_file}" -F "env=@#{archive_path}" https://www.lesspainful.com/cmd_upload`
Expand Down

0 comments on commit 762d805

Please sign in to comment.