travis-ci

Using embedded database with Flyway and jOOQ in Maven for continuous integration

99封情书 提交于 2019-12-11 03:44:26
问题 So I'm really trying to do things 'right' with SQL that will break at compile time using flyway and jOOQ. To do this I need a database solution that can work on the continuous integration server with no access to any server-based database. Ultimately, I want to deploy this to Amazon so I need a solution that is mostly compatible with postgreSQL. HSQLDB's file protocol seems to fit that bill. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema

Get latest travis build status of a repo through travis API

♀尐吖头ヾ 提交于 2019-12-11 02:43:08
问题 I need to get the latest travis build status of a repo through their API. I need a behavior identical to that of build status badge i.e it shows passing when a "push" is passing, even if a newer "pull_request" is failing. One way of achieving is to list all builds of a repo using this and then traverse in reverse direction until I find a build which is not a pull requests and then check its status. However, there must be a short way of doing it because the same behavior is used by build

Github release Android project with Travis not working

做~自己de王妃 提交于 2019-12-11 02:35:49
问题 We have the following travis.yml file: language: android android: components: - extra-android-m2repository - build-tools-21.1.2 - android-21 - sys-img-armeabi-v7a-android-21 licenses: - android-sdk-license-.+ script: ./gradlew assemble before_deploy: - git config --global user.email "builds@travis-ci.com" - git config --global user.name "Travis CI" - export GIT_TAG=$TRAVIS_BUILD_NUMBER - git tag $GIT_TAG -a -m "Generated tag from Travis CI for build $TRAVIS_BUILD_NUMBER" - git push -q

travis setup heroku command yields repository not known error

a 夏天 提交于 2019-12-11 01:13:41
问题 I am working through the Raild 4 In Action book. On Chapter 13: Deployment, page 464 it is having you do the final configuration for a deployment hook for travis to push to your heroku app upon passing specs. The book already had me do the following: I entered the .travis.yml file in the root of my app. I then went to https://travis-ci.org/ and signed in via my Github account. I then flipped the switch to on for my project. Now when I do a git push I notice on travis that it does a build and

Travis CI run scripts in parallel

一曲冷凌霜 提交于 2019-12-10 23:06:38
问题 My Travis YML runs 3 scripts that are not dependent on each other. I'd like to run them in parallel to increase speed. Following this article: https://docs.travis-ci.com/user/speeding-up-the-build/ I modified my _travis.yml as such: language: ruby cache: bundler env: - BUILD=buildPDF.sh - BUILD=buildPages.sh - BUILD=buildHosting.sh script: "./$BUILD" When Travis runs I get the error The command "./$BUILD" exited with 126. Things I've tried so far: script: "./${BUILD}" Remove the spaces in the

Why does Travis CI think my code is Java 1.3, and how to fix it?

前提是你 提交于 2019-12-10 22:37:13
问题 I'm trying out Travis CI with a Java project (pretty standard Maven, Spring setup). Based on Travis docs, this should suffice in the .travis.yml file: language: java Travis should notice the project's pom.xml and run mvn test by default. However, the Travis build fails, giving me: error: static import declarations are not supported in -source 1.3 My sources are Java 1.6. How and where should I tell that to Travis? The Java project docs don't mention -source option at all. (Also, 1.3 is a bit

What is the proper way to get the karma test coverage path into Travis CI?

删除回忆录丶 提交于 2019-12-10 20:24:49
问题 I'm using karma to run unit tests and generate coverage reports. That all works fine but I want to publish the lcov.info file to Code Climate from Travis CI. I've done it before and it works great, but the url from that test runner was static. The issue is that karma creates a subfolder for each instance it runs such as test/coverage/PhantomJS 1.9.7 (Mac OS X)/lcov.info . Is there a clean way to get that url to feed into travis? I don't want to have to remember to update a hardcoded value

Run a Google App Engine on Travis-CI and test it with PhantomJS

放肆的年华 提交于 2019-12-10 18:14:22
问题 Is there a way to run a Google App Engine development appserver instance on Travis-CI, and then test that app with PhantomJS/CasperJS? One would not necessarily expect this to be a tremendously challenging thing, but I would be grateful for any relevant document, thoughts and suggestions. 回答1: This was discussed on Travis Github/issues, and in any case my solution has been to add this to .travis.yml : before_script: - wget https://googleappengine.googlecode.com/files/google_appengine_1.8.9

how to increase no activity wait time in travis CI?

天涯浪子 提交于 2019-12-10 17:43:30
问题 my test written for bash (which passes on my machine, test runs about 20-30 min) and I need to increase timeout for travis CI so that I can have successful build i have tried changing timeout by adding travis_wait 30 but i am getting error sudo: required arch: repos: - archlinuxfr=http://repo.archlinux.fr/$arch packages: # pacman packages - yaourt - archiso script: - ./build-repo - travis_wait 30 sudo ./build.sh -v the error i am getting script: - "curl -s https://raw.githubusercontent.com

How to get Docker host IP on Travis CI?

≡放荡痞女 提交于 2019-12-10 17:21:29
问题 I have a Rails repo on Travis. It has a docker-compose.yml file: postgres: image: postgres ports: - "5433:5432" environment: - POSTGRES_USER=calories - POSTGRES_PASSWORD=secretpassword (I had to use 5433 as the host port because 5432 gave me an error: Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use ) And a travis.yml: sudo: required services: - docker language: ruby cache: bundler before_install: # Install docker-compose - curl -L https://github.com/docker