Hi!
I am in the process of writing my first gem
.
Trying to use Travis CI
to automatically run tests and lint the code (and then hopefully later deploy), I am running into the following failure of my builds:
bundle exec rake install
[!] There was an error parsing `Gemfile`:
[!] There was an error while loading `nextcloud-deck-api.gemspec`: cannot load such file -- dry-struct
Does it try to require a relative path? That's been removed in Ruby 1.9. Bundler cannot continue.
# from /home/travis/build/Pamplemousse/nextcloud-deck-api.gem/nextcloud-deck-api.gemspec:5
# -------------------------------------------
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
> require 'nextcloud-deck-api'
#
# -------------------------------------------
. Bundler cannot continue.
# from /home/travis/build/Pamplemousse/nextcloud-deck-api.gem/Gemfile:5
# -------------------------------------------
#
> gemspec
# -------------------------------------------
The command "bundle exec rake install" failed and exited with 14 during .
Here is the complete build log: https://travis-ci.org/github/Pamplemousse/nextcloud-deck-api.gem/builds/709364716 .
I hopelessly cannot understand why bundle exec rake install
(or bundle install
for that matter) do not run successfully in the CI, while I don’t seem to have any problems on my machine…
Here is the code of the failing build: ; And of particular interest, the Gemfile, .gemspec, and .travis.yml.
Thanks for your help