Comments (4)
Your screenshot shows that the current Ruby version is 2.4.5. That's the ${travis_internal_ruby}
. You might need to set up your deploy step in a separate step kinda like GitLab users do in their .gitlab.yaml
:
deploy_staging:
stage: deploy
type: deploy
image: ruby:latest
script:
# workaround https://github.com/travis-ci/dpl/issues/1247
- gem install dpl && gem install faraday -v 1.8.0
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_API_KEY
except:
- schedules
only:
- merge_requests
You'll have to translate that to the equivalent in Travis config, though, obviously.
from dpl.
Thanks. My new file .travis.yml
language: java jdk: - openjdk8 env: - HEROKU_APP_NAME = [heroku_app_name] before_install: - chmod +x mvnw script: - mvn clean verify deploy: provider: script skip_cleanup: true script: - rvm use $TRAVIS_RUBY_VERSION do script.rb - gem install dpl && gem install faraday -v 1.8.0 - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_API_KEY on: repo: [my_repo_github] branch: main
but now I have a new problem
I search in .travis.yml but I don't see any 'ruby'
from dpl.
I don't see how that could be happening, either.
Try replacing $TRAVIS_RUBY_VERSION
with 2.7.0
-- the key problem is that Travis' ruby is too old -- that's the error in your original post.
from dpl.
Thanks it works.
I change this line
rvm use $TRAVIS_RUBY_VERSION do script.rbin
- rvm use $TRAVIS_RUBY_VERSION use 2.7.0
from dpl.
Related Issues (20)
- Ruby 2.7.x support (update `json` to 2.3.x) HOT 2
- invalid option "--token=" failed to deploy HOT 1
- error: Found argument 'to' which wasn't expected, or isn't valid in this context HOT 1
- Invalid option "app" HOT 1
- failed to deploy to github pages HOT 1
- pypi deploy failing for python 2 with "SyntaxError: invalid syntax" HOT 2
- ArgumentError when deploying using Heroku API HOT 6
- Failed to install dpl dependencies: get-pip.py failed HOT 3
- Unable to override `url` parameter in the `pages` provider when using `deploy_key`. HOT 1
- AWS Lambda Runtime outdated HOT 2
- AWS Lambda Deployment gives "An update is in progress for resource" error HOT 4
- RuntimeError: An attempt to run a request with a Faraday::Connection without adapter has been made HOT 5
- Not able to upload multiple files on Elastic beanstalk using Travis CI
- dpl reports deploy failure, Heroku says everything is fine HOT 2
- Error installing dpl-pages HOT 2
- deploy to github pages report no deploy_key
- uninitialized constant Rendezvous::StringIO HOT 2
- DPL seems not compatible with ruby 3.2.0 HOT 2
- info cf spaces No org targeted, use 'cf target -o ORG' to target an org.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpl.