travis-ci

Configure gradle.properties android.enableAapt=false on travis yml file

♀尐吖头ヾ 提交于 2019-12-05 04:02:05
In my android's gradle.properties I have the following: android.enableAapt2=false My gradle.properties is located in my ~/.gradle/gradle.properties in my local machine. I am wondering how I can add android.enableAapt=false to my yml file. I tried to add it under global but that didn't work there was no errors but in robolectric it needs to be set if you are using gradle:3.0.0-beta3 . language: android jdk: oraclejdk8 env: global: - ANDROID_TARGET=android-25 - ANDROID_ABI=armeabi-v7a - android.enableAapt2=false android: components: - tools - platform-tools - build-tools-25.0.3 - android-25 -

Travis CI testing branches with corresponding set of environment variables

梦想的初衷 提交于 2019-12-05 02:34:23
I have a project that I'm trying to automate tests using Travis CI. I have a dev branch and a test branch, and they have different environment variables. For example, on the dev branch, I need to connect to a different API than the test branch, specified by an environment variable. So, when I run the build on the dev branch on Travis, how do I set it up so that it only tests with the dev set of environment variables, and likewise for build on test branch? There is no great way to do this right now, but you can write a shell script that checks the Travis environmental variable TRAVIS_BRANCH

How to disable Android emulator animations in Travis?

雨燕双飞 提交于 2019-12-05 02:33:12
问题 I am running Espresso tests in the Travis CI. When I run my tests in my device, I normally disable all my animations so I don't have to use Thread.sleep all the time. But I really don't know how to do this in the Travis CI, so my tests fail without the Thread.sleep. I looked over the internet... but I didn't find any tutorial about how to do disable the animations in the emulator I could use idling resource in Espresso, I know. But some times I would prefer not to. 回答1: If you try @azizbekian

TravisCI / Coverity: Warning - No files were emitted

巧了我就是萌 提交于 2019-12-05 02:33:10
问题 I have a medium size github repository for which I configured Travis-CI/Coverity tools. About a month ago my setup had worked just fine: Travis compiled and built my application, and then performed the Coverity scan and I could see the results on my Coverity page. However, lately, the Coverity analysis stopped working. I looked through the Travis log files and compared to the old logs when the builds were successful and that's what I found: At the end of the log, the failed version contains

travis-ci setup releases with --github-token

痞子三分冷 提交于 2019-12-05 02:28:08
I am having problems using setup releases with a github token. I like travis-ci but I am not willing to hand out my github password - I need to use the token and I read the documentation as this should be possible this way. Unfortunately it still asks for pasword: $ travis login --github-token XXXXXXXXX Successfully logged in as ligi! $ travis whoami You are ligi (ligi) $ travis setup releases Detected repository as ligi/gobandroid, is this correct? |yes| Username: The Travis CI CLI will not send the GitHub password to Travis CI, instead it will send it to GitHub and use it to generate a

Getting TravisCI to commit and push a modified file with Tags (releases)

自古美人都是妖i 提交于 2019-12-05 01:14:36
问题 I was helped by Sir Athos (thank you greatly) earlier today on a separate question which helped me greatly. I am now stuck at a point where I want to modify a simple text file and include it in my push. So basically I want to add the modified text file to a commit and push it as a commit with it's build number tag as a release. Hope I am making sense here. My code to do try and do this so far is #!/bin/bash YEAR=$(date +"%Y") MONTH=$(date +"%m") git config --global user.email "${GIT_EMAIL}"

Install ruby headers with rvm

心不动则不痛 提交于 2019-12-05 01:10:30
问题 Travis CI uses RVM to provide Ruby, but it doen't seem to contain the headers: $ find /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/zlib.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/dl.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/i686-linux/syck.so /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib

Quoting YAML (for Travis CI)

谁说胖子不能爱 提交于 2019-12-05 00:45:07
How would I escape a whole line in YAML? I want to have json='{"title": "travis_saulshanabrook_site","key": "'$(cat ~/.ssh/id_rsa.pub)'"}' in a list, but I can't get it to parse into a string. I can put single quotes around the whole line, but then I would have to escape every single quote in my string, making it very hard to read. The string will be run as a bash command in Travis CI The most elegant solution is to use the literal style | indicator, with the - modifier to strip the final newline. That way there are no extra quotes necessary. If this scalar happens to be the only thing in a

Integrate Gitlab and TravisCi

白昼怎懂夜的黑 提交于 2019-12-05 00:29:38
Is there a way where I can integrate TravisCi with Giltab? or at least logging in TravisCi using username and password and not Github credentials? Holger Just No, as of right now, Travis-CI is strictly bound to GitHub. While there are certainly talks about lessening this requirement, it's still there for still some time to come. As a workaround, you could push your stuff to GitHub and from there to Travis, using GitHub only as an intermediary. 来源: https://stackoverflow.com/questions/22693830/integrate-gitlab-and-travisci

How do I automatically deploy from Travis CI with the container-based infrastructure?

这一生的挚爱 提交于 2019-12-04 20:15:38
When I use the Travis CI "container-based" infrastructure , I must have sudo: false set in my .travis.yml ; but this appears to be incompatible with automatic deployment using, for example deploy: provider: hackage which causes my build to fail with Installing deploy dependencies sudo: must be setuid root How can I use automatic deployment from Travis CI with the container-based infrastructure? The final lines of the build log, starting with successful completion of the code build and test are: The command "stack $ARGS --no-terminal --install-ghc test --haddock" exited with 0. #cache.2 store