travis-ci

Deploying a Maven version to Github using Travis CI

拜拜、爱过 提交于 2019-12-07 05:13:31
问题 I successfully managed to deploy a JAR from a maven project to Github using tags. However, current configuration assumes that the file name of the JAR always stays the same, which it doesn't. When I do a new release this will change accordingly so deployment will fail. Is there a way I can use kind of wildcards in the YAML file? From what I found here on Stackoverflow and on the web, wildcards are not supported in YAML. I couldn't find another hack for doing this without manipulating the

Travis CI for Android - Build Error: Failed to find target & Could not find dependencies

若如初见. 提交于 2019-12-07 05:02:31
问题 I am trying to set up Travis CI for my existing Android project. I've added the .travis.yml: language: android android: components: - build-tools-21.1.2 - android-22 - extra-google-google_play_services But it always fails in Travis CI with the following error: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':evercamPlay'. failed to find target android-22 : /usr/local/android-sdk * Try: Run with --stacktrace option to get the stack trace. Run

Travis CI skip tests (Gradle Android project)

[亡魂溺海] 提交于 2019-12-07 04:51:30
问题 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? 回答1: 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

Travis CI: branch filters in build matrix items

拈花ヽ惹草 提交于 2019-12-07 04:03:51
问题 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

Can Travis CI generate a badge for a specific Matrix configuration?

强颜欢笑 提交于 2019-12-07 02:10:00
问题 I am testing my library against two different versions of my SDK: the stable SDK and the dev SDK. Specifically: https://travis-ci.org/google/serialization.dart I expect my library to pass its tests with the stable SDK. However, the tests might fail with the dev SDK because the dev SDK might be broken. I'd like to display two badges to my users, to clearly indicate that "yes, the build failed, but it was just the dev SDK". Is this possible? Thanks! 回答1: This open source web app can create

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

不羁的心 提交于 2019-12-06 22:50:04
问题 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

Quoting YAML (for Travis CI)

不羁的心 提交于 2019-12-06 21:14:43
问题 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 回答1: The most elegant solution is to use the literal style | indicator, with the - modifier to strip the

Integrate Gitlab and TravisCi

南楼画角 提交于 2019-12-06 20:16:18
问题 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? 回答1: 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

Can you specify minor jdk version for travis ci

坚强是说给别人听的谎言 提交于 2019-12-06 17:16:36
问题 Is it possible to specify the minor version of the JDK for jobs running on Travis? I have a JavaFX project which is failing because JDK 1.8.0_31 is being used to perform the build where as the project uses some classes that were only shipped in Java 1.8.0_40 (specifically Alert and Spinner). Currently my .travis.yml file looks like below: language: java jdk: - oraclejdk8 Here's a link to the failed build just in case it's useful. 回答1: I finally got it working. This solution is not really

Travis configuration of phpcs for only current commit files

╄→尐↘猪︶ㄣ 提交于 2019-12-06 15:47:42
I am configuring phpcs in Travis. In order to check PHP code standard on commit push with travis CI. I am using following script script: - phpcs --standard=PSR2 $(find ./ -name '*.php') But this script checks each .php file. I need Travis to check only the current committed files. Does someone has any solution for this case? Thanks in advance. What you could try is the following: get last commit id: ( How to get the last commit ID of a remote repo using curl-like command? ) git log --format="%H" -n 1 Then get files in last commit: ( How to list all the files in a commit? ) git diff-tree --no