travis ci – Makefile:12: recipe for target ‘lint’ failed

Question: I'm making a pull request on a GitHub repository. Before making PR I already test my code with PHPUnit and all tests are passed. So, I did the PR on GitHub. But after travis-ci checking my PR, my PR not passed and the error says that: Makefile:12: recipe for target 'lint' failed I've no clue about all this error. I think if my PHPUnit test success then I'll pass the travis-ci check. But…

Build with Travis-ci and push some files/folder to another repository

Question: If anyone can take a look at this and maybe point me in the right direction. It's been 2 days and I can't find a solution. There is a similar issue here, and I may be missing something. You can see the travis-ci build log here The error message is: [crayon-63e3f730deba7133292293/] .travis.yml file [crayon-63e3f730debac320185057/] I have run travis encrypt GH_TOKEN="mytoken" --add and I've tried creating a new token in github twice to see…

Is there a installable Travis alternative?

Question: Is there a CI server that works similarly to Travis that is installable? I want to test mainly Python applications. Answer: Buildbot and Jenkins-CI are two solutions that will meet your needs. Buildbot is a Python application - Jenkins-CI is written in Java but can run tests for Python programs.

Travis-CI “The command “bundle exec rake” exited with 1.” + mystery 404 error

Question: bundle exec rake runs all tests perfectly fine locally. However, Travis CI keeps blowing up with Problem accessing /authentication without giving much more info to go on. Here's one of the failed builds: https://travis-ci.org/Nase00/Horizon/builds/48094102 For the life of me, I cannot figure out what is causing an authentication error when Travis tries to run bundle exec rake. Here's the project repo: https://github.com/Nase00/Horizon Answer: I'm not sure what version of Neo4j Travis uses (UPDATE:…

travis ci – /dev/null doesn’t seem to be working in docker container

Question: I am running some automates tests in Travis-CI and I'm having troubles understanding some strange behaviour. The problem is the following: There is one long command that uses lots of redirections: bamtofastq filename=input.bam T=temp.fq-sort F=>(bgzip -c /dev/stdin > matched_1.fq.gz) F2=>(bgzip -c /dev/stdin > matched_2.fq.gz) S=/dev/null O=/dev/null O2=/dev/null collate=1 colsbs=1048576 the arguments S, O and O2 are redirecting outputs to /dev/null, so nothing should be shown in stdout. If I run the tests locally…

Travis: Unable to find chromedriver

Question: I am trying to integrate travis to my cucumber tests using watir. However, Now, I seem to be stuck in the last problem with chromedriver. I get the error [crayon-63e3f730df1ed520039323/] (Selenium::WebDriver::Error::WebDriverError) I fixed this thing in my local windows machine by adding chromedriver in lib folder of ruby and adding path to system32, webem I am not sure on how to do about this in Travis. Can someone help me? My .travis.yml file…

Sonar on Travis: ERROR You must define the following mandatory properties for ‘Unknown’

Question: I'm trying to setup SonarQube on Travis for a Java project by following Travis documentation https://docs.travis-ci.com/user/sonarqube/ My resulting my .travis.yml file is as follows: [crayon-63e3f730df4a1497619026/] My resulting sonar-scanner.properties file is: [crayon-63e3f730df4a6848879259/] But when I commit and Travis start building, sonar job fails with following logs: [crayon-63e3f730df4a8470280635/] I did put my sonar-scanner.properties in the root of my project folder. Why travis cannot find and instead is using /home/travis/.sonarscanner/sonar-scanner-2.8/conf/sonar-scanner.properties? Answer: If your project is a…

travis ci – ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column “created_at” violates not-null constraint

Question: I have a new model, this is my migration: [crayon-63e3f730df6e1523818891/] and this is my schema [crayon-63e3f730df6e6390967263/] I also have a policy (from pundit) for this model and a new_policy_test, however, at the moment both are empty. So when passing the tests in Travis it tells me: [crayon-63e3f730df6e8069717493/] and the same for NewPolicyTest#test_update, NewPolicyTest#test_scope, NewPolicyTest#test_show, NewPolicyTest#test_destroy, NewPolicyTest#test_create. What should I do for Travis not to give me this error? Answer: I added created_at and…

I have an install script in the before part of travis-ci’s script, but travis “can’t open it”

Question: In my .travis.yml script I have the following: [crayon-63e3f730dfa89062345945/] Among some other things. That script referenced there looks like this: [crayon-63e3f730dfa8e650833155/] But like I said, every time travis tries to run the script and test the push it says this: [crayon-63e3f730dfa91319101185/] Answer: sh: 0: Can't open adore-djakota-install.sh means that sh can't find the file. It appears to me like you've forgotten to cd into the directory where the file is located. Also, remember…

Testing REST api built using Node.js(Express) on Travis CI

Question: I want to test the rest api service i created using Express framework and MongoDb on Travis CI. The test works locally on my machine but fails on Travis CI. I'm guessing the problem is with my .travis.yml and package.json. Here is how i run my test locally: [crayon-63e3f730dfd8c102527295/] How can i do the same on travis CI? Here is my app https://github.com/mujuni88/Express-RestApi-Tutorial. travis.yml: [crayon-63e3f730dfd91082539657/] package.json: [crayon-63e3f730dfd93981584045/] Answer: The answer is simple -…