Skip to content

Instantly share code, notes, and snippets.

@francois-blanchard
Last active September 15, 2020 08:55
Show Gist options
  • Save francois-blanchard/1564cd9b4220e29b7fb55595cff54f68 to your computer and use it in GitHub Desktop.
Save francois-blanchard/1564cd9b4220e29b7fb55595cff54f68 to your computer and use it in GitHub Desktop.
How to debug a failed travis.ci build

How to debug a failed travis.ci build

1/ Go to travais build

https://travis-ci.com/gitUser/gitRepo/builds/XXXXXX

build

2/ Connect to travis build with ssh

build

connect to travis server with green ssh command

build

3/ Load and install environement

Open .travis.yml for find command line need to execute

# Lauch redis
$ redis-server

# before_script
$ mysql -e 'create database genesis_test'

# before_install:
sudo apt-get install libhiredis-dev
gem install recommendify -v '0.3.8'

# script
$ RAILS_ENV=test bundle exec rake db:migrate --trace
$ bundle exec rake db:test:prepare
$ RAILS_ENV=test rake sunspot:solr:start
$ bundle exec rspec spec/
@smac89
Copy link

smac89 commented Jun 17, 2019

@MasterOdin Thanks for clarifying this. I was under the impression that emailing travis was an optional method to enable debug build and the other method was to use the API.

@bit2shift
Copy link

@smac89 the easier route is (if you're able) to temporarily make the repository private and then go to Travis CI -> Settings -> Sync account (need to smash that button a couple of times to register your intent).
The Debug Build/Job button should then be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment