72654

Github release Android project with Travis not working

We have the following travis.yml file:

language: android android: components: - extra-android-m2repository - build-tools-21.1.2 - android-21 - sys-img-armeabi-v7a-android-21 licenses: - android-sdk-license-.+ script: ./gradlew assemble before_deploy: - git config --global user.email "builds@travis-ci.com" - git config --global user.name "Travis CI" - export GIT_TAG=$TRAVIS_BUILD_NUMBER - git tag $GIT_TAG -a -m "Generated tag from Travis CI for build $TRAVIS_BUILD_NUMBER" - git push -q [deleted] --tags - cp ./app/build/outputs/apk/*.apk . deploy: provider: releases api_key: secure: [deleted] file: - "app-debug.apk" - "app-release-unsigned.apk" on: repo: [deleted] branch: master

However, after running the whole build I get the following message:

Deploying application Already up-to-date! # HEAD detached at ad25432 # Untracked files: # (use "git add <file>..." to include in what will be committed) # # app-debug-unaligned.apk # app-debug.apk # app-release-unsigned.apk # nothing added to commit but untracked files present (use "git add" to track) Dropped refs/stash@{0} (06ce20597689d21dbeb937f9cc1ac1529ba6c14c) /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/octokit-4.1.0/lib/octokit/client/releases.rb:86:in `initialize': No such file or directory - app-debug.apk (Errno::ENOENT) from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/octokit-4.1.0/lib/octokit/client/releases.rb:86:in `new' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/octokit-4.1.0/lib/octokit/client/releases.rb:86:in `upload_asset' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/provider/releases.rb:118:in `block in push_app' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/provider/releases.rb:102:in `each' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/provider/releases.rb:102:in `push_app' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/provider.rb:141:in `block in deploy' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/cli.rb:41:in `fold' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/provider.rb:141:in `deploy' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/cli.rb:32:in `run' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/lib/dpl/cli.rb:7:in `run' from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/dpl-1.7.21/bin/dpl:5:in `<top (required)>' from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/dpl:23:in `load' from /home/travis/.rvm/gems/ruby-1.9.3-p551/bin/dpl:23:in `<main>' failed to deploy

I once set the file: property to build.gradle to test, and that worked. But why is this not working?

Answer1:

Ok, found the (rather obvious, now that I see it) issue: my build output was being deleted...

I used travis setup releases but somehow that did not add skip_cleanup: true to my deploy block.

Recommend

  • Word 2007 VBA: ActiveDocument.CustomXMLParts
  • How to preserve alias property while signing app?
  • how tensorflow worker driver training process and cause variables update on ps job?
  • WP7 - read from CSV file? Or what to do with the data?
  • In Angular 2 how to get @Input value updated inside component?
  • LINQ to Entities does not recognize the method 'System.String ToString()' method, and this
  • Delphi. Analog of Memo/RichEdit
  • Angular5 Service Worker update(SWUpdate) not detecting on firefox. Working on chrome
  • Deploying pre-encrypted configuration files to a production environment
  • Instanciate service on startup in Angular2
  • Loop animation drawable
  • Calling java project from Mathematica
  • get passwords from chrome
  • PHP file_exists() anomaly
  • GWT Widget.addHandler
  • MySQL multiple IN conditions to subquery with same table
  • Gray line inside cardview :)?
  • 'doc_del_count' bigger than 'doc_count' on CouchDB
  • Dynamically set LESS variables from user settings
  • Insertion large number of Entities into SQL Server 2012 [duplicate]
  • Wrapping text in spinner android
  • Relative paths. baseUrl and paths not working on ionic2 - angular2
  • How to resolve permission denied maybe missing internet permission?
  • Is it possible to get the word under the mouse cursor in a ``?
  • Add reference to ASP.NET 5 Class Library from Framework 4.5 Class Library Project
  • BeautifulSoup difference between findAll and findChildren
  • How can I get the choice “H2” back in the H2 consol?
  • NHibernate manually control fetching
  • Upload file that is in the cpan database
  • OSX - always hide certain files
  • PHP CURL timing out but CLI CURL works
  • Installing iPhone App to iPhone
  • With Hadoop, can I create a tasktracker on a machine that isn't running a datanode?
  • Launch Runnable Jar from Web Start
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • Akka Routing: Reply's send to router ends up as dead letters
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • Observable and ngFor in Angular 2