travis-ci

How can I add a 3rd party JAR to my Travis-CI maven build?

隐身守侯 提交于 2019-12-06 07:49:50
问题 I have a project that uses a JAR with no maven repo. I made this by myself. Before build my project, I do this on my console: mvn install:install-file -Dfile=myownjar-1.5.jar -DgroupId=com.cmabreu -DartifactId=mylocal-lib -Dversion=1.5 -D packaging=jar -DgeneratePom=true and add the JAR to my maven repo (local). Then I add the required dependency tag to my POM file and build my project. But, when I commit to Github, I do not send my custom JAR (is another project). The question is: how can I

How do I match the right Cabal spec with each resolver in my Travis CI builds?

孤者浪人 提交于 2019-12-06 07:35:31
After updating my Haskell package's .cabal file to Cabal 2.2 , most of my Travis CI builds with resolvers older than LTS 12.9 fail with: This package description follows version 2.2 of the Cabal specification. This tool only supports up to version XX.XX.XX. where the version varies depending on the resolver specified in my .travis.yaml . It seems that for each resolver I need to specify a different Cabal version In fact, because of Cabal spec changes, I appear to need a different .cabal file for each resolver. Is this the case? Is there a better way? How do I match the right Cabal spec with

Android O Gradle build fails with travis ci

此生再无相见时 提交于 2019-12-06 06:09:05
I'm trying to use Travis CI for my Android Project but my Builds constantly failing but works on local build. I am using Android Studio Preview 3 and gradle 3 alpha 3. I am getting this error below. Could not find com.android.tools.build:gradle:3.0.0-alpha3. Here is my build log My Travis Config file My Project gradle file I'm getting an Access denied error to your build log , and I didn't use it, but I'll try to answer you. As announced here : The Android Gradle Plugin 3.0.0-alpha3 was also released through maven.google.com. You can try to fix it by adding Google’s Maven Repository here like

Sample .travis for Django with MySQL tests

旧巷老猫 提交于 2019-12-06 06:06:52
Need a .travis sample yaml file for unit testing mysql queries on Django. This is a sample .travis.yaml for Django unit testing with MySQL integration. language: python python: # - "2.6" - "2.7" services: mysql env: # - DJANGO=1.2.7 # - DJANGO=1.3.1 - DJANGO=1.4.3 DJANGO_SETTINGS_MODULE="mysite.travis_settings" install: - pip install -q Django==$DJANGO --use-mirrors - pip install pep8 --use-mirrors - pip install mysql-python --use-mirrors # - pip install https://github.com/dcramer/pyflakes/tarball/master # - pip install -q -e . --use-mirrors before_script: # - "pep8 --exclude=migrations -

Tool for java code coverage on GitHub [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-06 05:11:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I have a Java project created in IntelliJ and using Gradle. My repository is hosted on GitHub, I've also integrated Travis CI. My tests are done using JUnit and Mockito, Java 8. I'm looking for a tool that would automatically run tests whenever I push to my repository, providing me with information if tests passed

Travis CI With Ant Build, Not Finding JUnit

喜夏-厌秋 提交于 2019-12-06 03:33:41
问题 I'm trying to figure out how to get Travis CI working with my little Java library on Github. The problem seems to be that whenever the build process gets to the compilation stage, it won't compile the unit tests because it can't seem to find the JUnit jar file. Of course the Ant script works beautifully on my own computer, but I can't get the classpath right on Travis. How am I supposed to know where (or even if) they installed JUnit? Here's my Ant script: <project> <target name="test">

Can Travis CI use an encrypted file in different forks of the same repo?

蹲街弑〆低调 提交于 2019-12-06 03:22:25
I'm trying to get a Travis CI build to work in both my own private fork and the repo of my organization. I encrypted a config file using the travis encrypt-file command and it seems to have created two environment variables in the travis settings for my own fork that look like: "encrypted_d1234_key" and "encrypted_d1234_iv". These are used when the build runs to decrypt the config file, like so: openssl aes-256-cbc -K $encrypted_d1234_key -iv $encrypted_d1234_iv -in test.config.enc -out test.config -d Can I somehow copy those secure environment variables over to the settings for my org's repo

Add SonarQube coverage via shields.io badge

☆樱花仙子☆ 提交于 2019-12-05 22:33:00
问题 I have com.github.xxxxxx:xxxxxx Maven repository and I want add shields badge but I have a invalid badge: https://img.shields.io/sonar/https/sonarqube.com/com.github.noraui:noraui/tech_debt.svg Sonarqube xxxxxx project page: https://sonarqube.com/dashboard?id=com.github.xxxxxx%3Axxxxxx I find a OK sample from an other sonar server: https://img.shields.io/sonar/http/sonar.qatools.ru/ru.yandex.qatools.allure:allure-core/coverage.svg https://img.shields.io/sonar/http/sonar.qatools.ru/ru.yandex

What do I need for Travis-CI to decrypt secure variables on my fork?

空扰寡人 提交于 2019-12-05 21:44:33
I have forked a Github repository and would like to use travis-ci, as the original repository does, to run tests when I commit. However, the AWS keys, which are encrypted , are not decrypted and keep the tests from succeeding. Since my workplace owns the original repository, I have access to whatever is needed, but am unsure what information to retrieve, where to find it, or what to do with it. For clarity, here is the pertinent part of the .travis.yml: env: global: - NODE_ENV: test - [...] - secure: M3YSEJnWYd[...] - secure: kvvLABsWTq[...] All of the environment variables are imported except

How to access output files in Travis?

六月ゝ 毕业季﹏ 提交于 2019-12-05 20:56:14
问题 I'm trying to deploy an Android library on Bintray using Travis-CI. But when I upload my repo... I got this: Ran lint on variant release: 6 issues found Ran lint on variant debug: 6 issues found Wrote HTML report to file:///home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.html Wrote XML report to file:///home/travis/build/leandroBorgesFerreira/MoreCLoseButton/app/build/outputs/lint-results-debug.xml :app:lint FAILED Normally I would go to my project