travis failing to run rake with LoadError: cannot load such file — rspec/core/rake_task

Question: Let me preface this with this all runs locally and succeeds. Source code repo Travis log for job #4.1 Error: [crayon-64285fb725edb900892104/] .travis.yml [crayon-64285fb725ee0741915837/] Gemfile [crayon-64285fb725ee2955222067/] Fix attempts: Locally, I have emptied my rvm gemset, deleted locks, and replicated the travis build - still works I tried moving the necessary test gems from the gemspec to the Gemfile So I'm pretty confused, I have other projects that don't have this problem and I don't…

travis-ci – ssh-add asking for my passphrase

Question: I am working on a continuous integration with Travis CI. This is my configuration: [crayon-64285fb7262e9318963652/] On the ssh-add step, it ask me the passphrase and it's stop the deployment. I have tested with an other ssh key without passphrase but it don't fix my issue. I have tested lot of solution like yes $MY_PASSWORD | ssh-add ~/.ssh/id_rsa or echo "$MY_PASSWORD" | ssh-add ~/.ssh/id_rsa but it don't works. I have added to my .ssh/config…

QT QOverload was not declared in this scope on Travis CI

Question: So I'm currently trying to setup Travis CI for a Qt project on GitHub however I'm getting an error on compiling. It works perfectly fine on my (windows) machine however not on the Ubuntu Travis CI build. The issue I'm getting in particular is [crayon-64285fb72658e503297303/] Again, this works perfectly on my machine. I have included in BacklogManager.cpp. I'm just not sure why this is not defined in that scope on Travis CI. .travis.yml…

Skip mvn test -B in travis ci

Question: I'm using travis ci for this project. I want skip the test so in the .travis.yml I've added this: [crayon-64285fb7268d5005636352/] But it always run mvn test -B. How can I avoid this? Answer: Build configuration is there - http://docs.travis-ci.com/user/build-configuration/ So you need to make "install" as empty command. Example - https://github.com/checkstyle/checkstyle/blob/master/.travis.yml#L21

Travis CI Android build keep failing with gradlew no such file

Question: my travis ci build keeps failing with, $ chmod +x /.gradlew chmod: cannot access ‘/.gradlew’: No such file or directory The command "chmod +x /.gradlew" failed and exited with 1 during . I tried all the suggestions, different yml files but cant get rid of this error. My travis yml is on root directory, the here is my folder structure root: /src .gitignore .travis.yml src: /client /server client: /app /gradle/wrapper build.gradle gradle.properties gradlew…

travis ci – compiler error: is private within this context only on gcc9 with c++17

Question: I test my code using travis. Recently someone added gcc9 to the set of compilers the code gets tested with. While everything compiles fine with gcc8 (both with c++14 and c++17) and gcc-9.1.0 with c++14 it fails with gcc-9.1.0 with c++17 with the following error: [crayon-64285fb726d9f150842632/] the code that throws this error is the following: [crayon-64285fb726da4736239034/] I use the following code for travis CI to use the corresponding compiler [crayon-64285fb726da5673040403/] the class Statement…

travis ci – Lerna build fails on remote – internal packages are badly symlinked

Question: I have a monorepo project created with lerna. I am trying to create a CI flow to test my repository installation and build actions on a remote environment. After hitting lerna bootstrap to install all packages dependencies, I am using lerna run build --stream on the root folder which invokes lerna run build for each sub package I have in my repository. This flow works great on my local machine but fails to…

Why is my module failing to import when I try to run Travis-CI tests?

Question: I'm trying to run Travis-CI on a module I've made. Nosetests pass on my local machine with flying colors, but for some reason the test.py file is failing to import my project. Below is the full output from Travis-CI: [crayon-64285fb7272d3958677273/] Note that Scrappy is the name of my project and that is what's failing to import. And here is my .travis.yml file: [crayon-64285fb7272d8914852494/] Any idea what could be wrong? Answer: Ok, so it…

travis ci – git: fatal: Could not read from remote repository when cloning Private Cocoapod

Question: I am trying to set up an iOS project on Travis-CI for the first time, and I am having trouble getting travis to add a private pod-spec repo. I've got a before-script that runs this command: [crayon-64285fb7274ed694840947/] However, I am getting this error when travis tries to add my private pod spec repo [crayon-64285fb7274f1804121570/] Now i am very new to this so apologies if I am missing something obvious here. I am sure…

Travis CI: The command “bundle exec rake” exited with 1

Question: I am having a problem with my Travis build where the build fails with the error The command "bundle exec rake" exited with 1. Here is the build log from Travis. Here is a link to the GitHub repo. I've tried adding require 'bundler' to my Rakefile as suggested by this question, but that didn't have any effect. I have no problems running bundle exec rake on my local machine and all tests…