old_contents: # noinspection PyUnresolvedReferences
  from shovel import task
  from subprocess import PIPE
  import subprocess
  import os
  
  @task
  def deploy():
      #command to push file to sauce storage
  
      print("Zipping app file for sauce deployment")
      command = ["zip", "staging/TapIt.zip", "-r", "staging/TapIt.app"]
      print(' '.join(command))
      result = subprocess.Popen(command, stdout=PIPE, stderr=PIPE, universal_newlines=True)
      output, error = result.communicate()
      print(output, error)
      if result.returncode != 0:
          print("Zipping failed.")
          exit(1)
  
  
      print("Publishing Zip file to Sauce Storage")
      command = ['curl',
                 '-u',
                 "{sauce_user}:{sauce_key}".format(sauce_user=os.environ['SAUCE_USER'],sauce_key=os.environ['SAUCE_KEY']), #auth info
                 '-X',
                 'POST',
                 '-H',
                 '"Content-Type: application/octet-stream"',
                 "https://saucelabs.com/rest/v1/storage/{user}/TapIt.zip?overwrite=true".format(user=os.environ['SAUCE_USER']), #sauce storage location
                 '--data-binary',
                 '@staging/TapIt.zip'] # file to upload location
      print(' '.join(command))
      result = subprocess.Popen(command, stdout=PIPE, stderr=PIPE, universal_newlines=True)
      output, error = result.communicate()
      print(output, error)
      if result.returncode != 0:
          print("Publishing to Sauce Storage Failed.")
          exit(1)
  
new_contents: # noinspection PyUnresolvedReferences
  from shovel import task
  from subprocess import PIPE
  import subprocess
  import os
  
  @task
  def deploy():
      #command to push file to sauce storage
      print("Publishing Zip file to Sauce Storage")
      command = ['curl',
                 '-u',
                 "{sauce_user}:{sauce_key}".format(sauce_user=os.environ['SAUCE_USER'],sauce_key=os.environ['SAUCE_KEY']), #auth info
                 '-X',
                 'POST',
                 '-H',
                 '"Content-Type: application/octet-stream"',
                 "https://saucelabs.com/rest/v1/storage/{user}/TapIt.zip?overwrite=true".format(user=os.environ['SAUCE_USER']), #sauce storage location
                 '--data-binary',
                 '@staging/TapIt.zip'] # file to upload location
      print(' '.join(command))
      result = subprocess.Popen(command, stdout=PIPE, stderr=PIPE, universal_newlines=True)
      output, error = result.communicate()
      print(output, error)
      if result.returncode != 0:
          print("Publishing to Sauce Storage Failed.")
          exit(1)
  
subject: remove zip step