travis-ci

Error using Travis CI with Sonarcloud: Not authorized. Please check the properties sonar.login and sonar.password

送分小仙女□ 提交于 2019-11-30 21:35:12
I'm following Get started instructions on sonarcloud.io to execute the SonarQube Scanner for Maven from my computer: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \ -Dsonar.host.url=https://sonarcloud.io \ -Dsonar.organization=ron190-github \ -Dsonar.login=9...e Manual execution is working: [INFO] ANALYSIS SUCCESSFUL, you can browse https://sonarcloud.io/dashboard/index /jsql-injection:jsql-injection But when I'm ready to automate with Travis CI it's failing with Not authorized. Please check the properties sonar.login and sonar.password. : [ERROR] Failed to execute

Travis-CI Android SDK license problems

南笙酒味 提交于 2019-11-30 20:44:07
I'm trying to build my Android project with Travis and currently I'm getting error: A problem occurred configuring project ':app'. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 27.0.1]. I don't know how, but yesterday I could solve problem with that: before_install: - yes | sdkmanager "platforms;android-27" But now it doesn't help me. I will be grateful for any advice. Here is build URL https://travis-ci.org/madsunrise/luna-mobile/jobs/325034903 and also I put travis.yml below sudo: required language: android jdk: oraclejdk8

Travis CI ignoring MAVEN_OPTS?

依然范特西╮ 提交于 2019-11-30 19:29:34
My Scala project (Maven-managed) is failing to build on Travis, throwing a GC overhead limit exceeded error despite compiling fine locally with the same MAVEN_OPTS=-Xmx3g -XX:MaxPermSize=512m . I suspect that Travis is somehow ignoring my MAVEN_OPTS : When I try to test against Oracle JDK 8, Travis logs: $ Setting environment variables from .travis.yml $ export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx3g" which looks good. However, soon after it logs: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=192m; support was removed in 8.0 which is troubling since NOWHERE am I

How to run aws configure in a travis deploy script?

喜夏-厌秋 提交于 2019-11-30 17:25:11
I am trying to get travis-ci to run a custom deploy script that uses awscli to push a deployment up to my staging server. In my .travis.yml file I have this: before_deploy: - 'curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"' - 'unzip awscli-bundle.zip' - './awscli-bundle/install -b ~/bin/aws' - 'export PATH=~/bin:$PATH' - 'aws configure' And I have set up the following environment variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION with their correct values in the travis-ci web interface. However when the aws configure runs, it stops and waits

Example of Travis CI yml file for java

不想你离开。 提交于 2019-11-30 13:54:15
问题 I am new to Travis CI, but I have connected my Github to it. I have also created a .travis.yml where I set the language to java. I have created a HelloWorld.java file and committed and pushed it to the repo. In Travis, there is no build at all. When I check requests under settings, I am seeing the commits, with the same status "Missing config", except for one stating "Build created successfully" but that has a red cross and red overlay when you hoover over it. Is my .travis.yml missing a lot

Call GitHub API with Travis to build Tag

纵饮孤独 提交于 2019-11-30 13:23:37
I have created a TravisCI Hook in a GitHub repository that automatically run a build after pushing to the repo. What I would like to add is that if the build succeeds a tag is automatically created. I have found out that there is a way to create tags with the GitHub API http://developer.github.com/v3/git/tags/#create-a-tag-object But how do I control access to my repository? I can't expose my login github credentials in the travis.yml because everyone can read it as it is cointained in the repository.\ I am pretty new to automated deployment so if there is any other solution to do this without

Travis CI build doesn't work with Android Constraint Layout

馋奶兔 提交于 2019-11-30 12:16:18
问题 I am trying to make Travis build my Android project. It fails when it tries to download the library for ConstraintLayout . Do you know what I have to do to make it work? My .travis.yml is this: language: android jdk: - oraclejdk8 android: components: - platform-tools - tools - build-tools-23.0.2 - android-23 - extra-android-support - extra-android-m2repository - extra-google-m2repository My build.gradle is: apply plugin: 'com.android.application' android { compileSdkVersion 23

how to run composer.phar self-update in travis

不打扰是莪最后的温柔 提交于 2019-11-30 12:08:24
I am facing warning statements in my travis builds. Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/home/travis/.phpenv/versions/5.3.26/bin/composer.phar self-update" to get the latest version. How do I then run this? See an e.g. here It is not such a good idea to hard-code the php path as paths might change when Travis gets update. I suggest simply calling composer self-update inside your travis.yml make sure you have this section before_install: - php /home/travis/.phpenv/versions/5.3.26/bin/composer.phar self-update in order to

Using Travis-CI for client-side JavaScript libraries?

喜夏-厌秋 提交于 2019-11-30 10:27:22
问题 I'm not sure to use Travis-CI for my client-side JavaScript library or not, because it compiles with NodeJs on Travis-CI servers. I want to know is this a good approach to use some kind of continuous integration such as Travis-CI for client-side libraries or not? 回答1: Yes of course you should use continous integration with client side libraries. I personally use PhantomJS (headless webkit browser) which is already installed in Travis-CI. I think this is the better option for client-side stuff

Example of Travis CI yml file for java

半世苍凉 提交于 2019-11-30 08:45:39
I am new to Travis CI, but I have connected my Github to it. I have also created a .travis.yml where I set the language to java. I have created a HelloWorld.java file and committed and pushed it to the repo. In Travis, there is no build at all. When I check requests under settings, I am seeing the commits, with the same status "Missing config", except for one stating "Build created successfully" but that has a red cross and red overlay when you hoover over it. Is my .travis.yml missing a lot of commands and scripts as I have only set the language? I dont have any build system as maven or the