travis ci – Run npm scripts using local deps

Question: Currently I run npm scripts using local deps this way: package.json: [crayon-6428eba682f4f573335988/] I don't want to use global deps, since I can forgot to add deps to the package.json. This way when a local dep is missing, then I got an error message and I don't have problems because some deps are not installed globally, e.g. karma plugins. Is there a better (shorter) way to define npm scripts using the local libs? Is…

travis ci – hdiutil: create failed – error -5342

Question: I could successfully use hdiutil for creating a dmg file on my local El Capitan box, but it's failed with on OS X 10.9.5 of Travis CI with the error hdiutil: create failed - error -5342 The command used to creating image is [crayon-6428eba683373856766978/] $FIXTURE_ROOT is a exist temp dir. You can find the very details on Travis Logs. Answer: I often had this problem, until I learned (somewhere) that hdiutil often mis-calculates…

travis ci – The command “mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V” failed and exited with 1 during

Question: I have setup my .travis.yml as: [crayon-6428eba683594901036788/] but I get [crayon-6428eba683599874103911/] see https://github.com/WolfgangFahl/w3cValidator/blob/master/.travis.yml What is wrong with this setup? Why is mvn install executed when I ask for mvn verify? I had expected this to work based on: https://stackoverflow.com/a/33283409/1497139 and checking the .travis.yml with http://lint.travis-ci.org/ Answer: In general, I'd recommend using install: true and placing the commands for the build under the script element. [crayon-6428eba68359a660740555/] There is an important difference between install and…

travis ci – rack requires Ruby version >= 2.2.2

Question: I'm trying to use Travis-CI with a new Ruby on Rails project I just started a few days ago. I've tried updating Travis-CI to update rubygems in before_install but still no luck. [crayon-6428eba683768797610230/] Answer: Edit your .travis.yml: rvm: - 2.2.2 (or whatever the latest stable is).

Not authorized to execute any SonarQube analysis when building pull request from a forket repo on Travis CI

Question: I'm setting up a project with Travis CI and SonarQube.com, everything goes smoothly when a pull request comes out of a branch from the repository but it is failing when Travis runs a build off a pull request from a forked repository. A build out of a PR from the repository: https://travis-ci.org/PistachoSoft/dummy-calculator/builds/162905730 A build out of a PR from a forked repository: https://travis-ci.org/PistachoSoft/dummy-calculator/builds/162892678 The repository: https://github.com/PistachoSoft/dummy-calculator As it can be seen in the…

travis ci – Install an homebrew bottled binary package

Question: I need to speed up a travis package generation in which I need brew install fftw --with-openmp that takes ~20 minutes to build and most of the time Travis kills my job. My idea is to create another repo in which (once in a while) I generate the binary bottled version of fftw --with-openmp and then from my application repo intall that particular bottled version. I'm stuck in this last part... I created…

Why does maven-enforcer-plugin detect maven 3.2.5 when it’s run with 3.1.1 on travis-ci.org?

Question: I have a project document-scanner-aggregator which runs fine locally when run with Maven 3.1.1, i.e. ~/apache-maven-3.1.1/bin/mvn clean install, but doesn't on travis-ci.org where it detects Maven 3.2.5 which suspiciously is the version provided by travis-ci.org. However it's not supposed to do that, because the Maven version which runs the build is supposed to be enforced, right? The failure is [crayon-6428eba683cc2848609693/] and the configuration is [crayon-6428eba683cc7573688496/] in javaocr. The .travis.yml is [crayon-6428eba683cc8284163253/] Answer: You're…

Elasticsearch docker on travis fails with folder access denied

Question: I am having trouble using an Elasticsearch docker image on travis. Given this docker-compose.yml file: [crayon-6428eba683f66352930023/] and the following .travis.yml file: [crayon-6428eba683f6a597659175/] The Elasticsearch engine fails to start with the following exception: [crayon-6428eba683f6c641635693/] Note the Caused by: java.nio.file.AccessDeniedException above. The folder ./elasticsearch/data exists and seems to be attributed to travis:travis as usual. I need help identifying the root cause here, and to find a solution that hopefully does not involve brute-forcing the permissions…

travis ci – Firebase_cli_path: missing path to firebase cli tool. Please install firebase in $PATH or specify path

Question: Travis CI throwing the firebase_cli_path. I am not sure how can I specify this path. In Google document, it mentioned that this path will automatically detect. Well, then I need to install the firebase tools into Travis CI, How can I do that? This is travis.yml [crayon-6428eba684250776207220/] This is fastfile [crayon-6428eba684254045326764/] Answer: I've figured out it and it's working now. Just included the script to install the standalone firebase tool in Travis. Check…

tox/conda/travis-ci raises ImportError: _PyErr_ReplaceException

Question: I want to set up Travis-CI to run the locally working test suite of a recently open-sourced Python 2.7 library. For efficiently installing dependencies like Numpy and Scipy, I found some advice to use the Miniconda distribution. Unfortunately, my .travis.yml, which follows the official "Using Conda with Travis CI" tutorial, after successfully installing all dependencies produces this error while initializing the tox environment: [crayon-6428eba684434056012106/] The mentioned symbol was recently added in Issue 23781…