travis-ci

Install Latest Version of Firefox on Travis And Run with Protractor

自闭症网瘾萝莉.ら 提交于 2019-12-04 13:17:23
Travis installs Firefox 31.0esr by default, but we want to always use the latest version. The reference here says it should be pretty straight forward, but it doesn't seem to actually install, rather it just seems to download the tar file. Protractor still uses Firefox version 31.0esr when it runs. travis.yml addons: firefox: "latest" protractor.conf.js capabilities: { 'browserName': 'firefox' } Logs: Initial Firefox install still happens: [34m[1mInstalled Firefox version[0m firefox 31.0esr ... the addon section kicks in and downloads the file fine, before the before_install section as

using travis-ci with wxpython tests

て烟熏妆下的殇ゞ 提交于 2019-12-04 13:02:16
I'm trying to add some wxPython tests to work with travis-ci, but I can't figure out how to install wxPython in the build environment. I used brew to install wxPython on my computer, but I can't get brew to work with travis-ci. In the travis-ci docs, it appears that brew should come built-in: http://docs.travis-ci.com/user/installing-dependencies/#Installing-Mac-Packages , but as far as I can tell it doesn't. If I try to use brew, I get this error message: $ brew update /home/travis/build.sh: line 41: brew: command not found Here are some other things I've tried in my .travis.yml file to get

travis mysql database create user error

随声附和 提交于 2019-12-04 12:48:26
问题 I wanted to set up travis for my spring-boot project where I use user makler/makler for accessing database. When running travis I get an error saying: $ mysql -u root -e 'CREATE DATABASE stockmarket;' $ mysql -u root -e 'CREATE USER 'makler'@'localhost' IDENTIFIED BY 'makler';' ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'makler' at line 1 The command "mysql -u root -e

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

纵饮孤独 提交于 2019-12-04 12:19:32
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 tell Travis-CI to build my project using this custom JAR in its repository without send it to Github?

How to use travis-ci's .travis.yml to provide environment parameters for Node.js Application?

走远了吗. 提交于 2019-12-04 12:08:48
问题 I use travis-ci to test my node.js application. Because the application need users login with Access Key and Secret Key to test, I need to specify these two keys in travis-ci's .travis.yml file. So How can i do this? And how to get these environment parameters in Node? Like these two parameters: https://github.com/ikbear/nodejs-sdk/blob/feature/copy_and_move_file/test/rs.test.js#L22 I want to specify them in .travis.yml like this: language: node_js node_js: - 0.8 - 0.6 - 0.4 env: - QINIU

How to run tests on CentOS 7 with Travis-CI?

给你一囗甜甜゛ 提交于 2019-12-04 12:02:01
问题 I try to use Travis-CI to test my ansible playbooks on CentOS 7. I got an error: error: unpacking of archive failed on file /usr/sbin/suexec: cpio: cap_set_file. Also I installed docker with: curl -sSL https://get.docker.com/ | sh on my Ubuntu: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty But there is this error: #docker run --rm=true -ti centos:7 /bin/bash [root@08bf52d53465 /]# [root@ca03cf7a13e2 /]#

NDK, CMake, and Android in TravisCI

本小妞迷上赌 提交于 2019-12-04 10:59:12
I'm trying to set up my CI for a Android project that uses some C++ code. As such I need the NDK that doesn't come pre-installed on Travis Android images. I'm currently achieving this by pulling the NDK myself, however my CI box is complaining about the CMake license not being accepted. The weird thing is that I thought this was included in the android-sdk-license which I am already including in my build. My travis YAML looks like this: language: android jdk: - oraclejdk8 - oraclejdk9 android: components: - tools - platform-tools - tools - build-tools-26.0.2 - android-26 - extra-android

Tool for java code coverage on GitHub [closed]

半世苍凉 提交于 2019-12-04 10:46:20
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 and code coverage information. Would like it to generate a GitHub badge just like Travis CI does, so that I can see how each branch is covered and if it's passing. Thanks! I use JaCoCo to capture coverage statistics which get published to Coveralls to track coverage changes between

How to start Travis CI deploy only when tag name matches a regex

风流意气都作罢 提交于 2019-12-04 08:54:10
问题 I want to kick off an npm deployment when a tag, that looks like a semantic version, is pushed, e.g. v1.2.3 . I see that the tag name is in the TRAVIS_TAG environment variable and that I can specify an on: condition, which "can be any Bash condition". I have no idea what to write here and how to debug it. - provider: npm on: tags: true all_branches: true condition: ??? Ideally, I would like to not bother with Bash at all - I would like the condition to execute a Node.js script and then decide

Travis CI With Ant Build, Not Finding JUnit

允我心安 提交于 2019-12-04 08:26:31
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"> <delete dir="build" /> <mkdir dir="build" /> <javac includeantruntime="false" srcdir="src" destdir="build" /