What commans should I use to run rspec test in pipeline?
If I use documenation example:
script: # Modify the commands below to build and test your repository.
- ruby --version
- bundler --version
- bundle install
I have an error: + + ruby --version bash: ruby: command not foundruby --version bash: ruby: command not found
+ ruby --version bash: ruby: command not found
by: command not fMound
Maybe there is more working example?
The issue here is that you're not using an image with the required dependencies for your project.
There are a few ways you could approach this.
The first is to run a command as part of your build that downloads the dependencies using apt-get (or another appropriate package manager).
The other option is to build your own docker image (either from scratch or by extending the existing ruby image), publish it to dockerhub and then use the image you pushed. Documentation for this can be found here https://docs.docker.com/engine/tutorials/dockerimages/.
Now rails need JS runtime.
Often I use nodejs localy. Could I add nodejs support? Or somehow set up js runtime?
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot