travis-ci

Can't configure travis to work on android project

我的未来我决定 提交于 2019-12-05 11:27:22
I have found several problems with Travis CI and I have been solving them but the last one I can't. I'm getting the common error com.android.ddmlib.InstallException: Failed to establish session This is my travis file: language: android before_install: - chmod +x gradlew android: components: # Uncomment the lines below if you want to # use the latest revision of Android SDK Tools # - platform-tools # - tools # The BuildTools version used by your project - tools - build-tools-23.0.3 # Additional components - extra-google-m2repository - extra-android-m2repository # The SDK version used to compile

Travis-CI: docker image as build environment

徘徊边缘 提交于 2019-12-05 10:39:27
In Travis CI is it possible to run the build process from inside a docker container? In GitLab CI this is the default. We can simply define the image in .gitlab-ci.yml then all the build/test/deploy will run inside that container. However, Travis seems to have totally different view about docker usage. How can I achieve a similar behavior in Travis? It turns out this is easier to do with Travis-CI than it first appears. All you have to do is write your normal build script using docker exec calls. Doing some of the trickier third-party service integrations may require dedicated shell scripts,

Travis CI skip tests (Gradle Android project)

半世苍凉 提交于 2019-12-05 10:37:33
Now I'm configuring Travis CI for my Gradle-based Android project. Is it possible to temporary disable tests launch from Travis to just know - if project could be built or not? albodelu By default, Travis-ci executes ./gradlew build connectedCheck if no script: section is found. Failed tests are ignored if you add the next code to all your tested modules ( build.gradle files). project.gradle.taskGraph.whenReady { connectedAndroidTest { ignoreFailures = true } } Another option is to skip the install stage and only to use ./gradlew build (or ./gradle build without gradle wrapper) so tests are

How do you merge into another branch using travis with git commands?

ぐ巨炮叔叔 提交于 2019-12-05 10:32:31
I am trying to add a feature to my devstack to add auto deploy when a travis test passes on a branch called travis . After this test passes, I want to merge this travis branch into master branch and push to the master branch. So far, when I push to travis branch, travis runs the test and everything succeeds but I am having problems with my git commands in after_success in my travis.yml file. travis.yml - "npm i -g jasmine-node" -after_success: - "git fetch" - "git checkout master" - "git merge travis" - "git push origin master" branches: only: - travis This is the output on travis console:

How I can decrypt secure env variables?

我怕爱的太早我们不能终老 提交于 2019-12-05 09:27:50
问题 I have .travis.yml with some secure (encrypted) env variables. Now I need to descrypt those variables to use them in different project. Is there easy way of doing this (except triggering a commit and printing them in console output)? 回答1: I don't think you can decrypt it. Public key is used to encrypt the data and it can only be decrypted with the private key which travis doesn't provide. 回答2: You can't decrypt locally from what I understand but you can recover the key/values. By nature, they

Issue using Encrypted bintray key in travis.yml

心已入冬 提交于 2019-12-05 09:16:41
So When i use the below in .travis.yml it works .. ********************* deploy: user: mybintrayuserid provider: bintray file: .bintray_descriptor.yml key: myapikey *********************** but if i change this to below i get error: ************************** deploy: user: mybintrayuserid provider: bintray file: .bintray_descriptor.yml key: secure: encryptedHashHash **************************** Error that i get : [Bintray Upload] Bintray response: 401 Unauthorized. This resource requires authentication . How i generated the key : travis encrypt myapikey --add deploy.key Note: I've added

Which continuous integration server is able to queue jobs?

与世无争的帅哥 提交于 2019-12-05 08:51:33
Use case: CI server polls some VSC repository and runs test suite for each revision. And if two or more revisions were commited, even in a relatively small time interval, I want the CI server to put each of them in queue, run tests for each, store the results, and never run tests again for those commits. And I don't want the CI server to launch jobs in parallel, to avoid performance issues and crashes in case of many simultaneous jobs. Which CI server is able to handle this? My additional, less important requirement is that I use Python and it is desirable to use software written in Python, so

Travis CI: branch filters in build matrix items

天大地大妈咪最大 提交于 2019-12-05 08:44:43
We are wondering whether there is any way to add filters to Travis matrix items. In our particular case, we wish to run certain jobs only on specific branches. The following example would be an ideal way for configuring this scenario, however it doesn't seem to work: matrix: include: - env: BUILD_TYPE=release branches: only: - master - env: BUILD_TYPE=ci branches: only: - develop As a workaround, we can exit from the build script immediately by checking the appropriate env vars ( TRAVIS_BRANCH ), but it is very far from ideal as launching the slave machine and cloning the repo takes a

During gradle test show standard out and err only for failed tests

喜夏-厌秋 提交于 2019-12-05 07:12:34
I have a large test suite running on travis-ci, which has a textual output. I would like to configure gradle in a way that only for failed tests, the standard output and standard error streams are displayed. For all other tests which have been executed correctly, this should not happen so that the console is not polluted with that noise. I am aware how to enable or disable the standard output/error logging, but I am unsure how to make this dependend on the test result. This can be archived with following gradle config project.test { def outputCache = new LinkedList<String>() beforeTest {

The command “echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a” failed and exited with 1 during

假装没事ソ 提交于 2019-12-05 04:29:19
Am new with Travis alongside android development, my build is failing because of the error title I indicated, I have been reading the documentation and I tried to implement it, but still, the build is failing. The link to my failing build is as below https://travis-ci.org/huxaiphaer/ConvergeLevelApp Below is the error on Travis. $ java -Xmx32m -version java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) $ javac -J-Xmx32m -version javac 1.8.0_144 0.46s$ echo no | android create avd --force -n test -t