s3krit / miniexec Goto Github PK
View Code? Open in Web Editor NEWA minimal interpretor/executor for .gitlab-ci.yml files
License: GNU Affero General Public License v3.0
A minimal interpretor/executor for .gitlab-ci.yml files
License: GNU Affero General Public License v3.0
currently dies like this
Traceback (most recent call last):
4: from /usr/local/bin/miniexec:23:in `<main>'
3: from /usr/local/bin/miniexec:23:in `load'
2: from /var/lib/gems/2.7.0/gems/miniexec-0.2.7/bin/miniexec:58:in `<top (required)>'
1: from /var/lib/gems/2.7.0/gems/miniexec-0.2.7/bin/miniexec:58:in `new'
/var/lib/gems/2.7.0/gems/miniexec-0.2.7/lib/miniexec.rb:42:in `initialize': undefined method `[]=' for nil:NilClass (NoMethodError)
should maybe throw a human readable error along the lines of $job is not defined in $workflow.yml
Just thought I'd mention that I tried to do the same in rust when we used gitlab at a previous place: https://github.com/gilescope/hamster
Will have to compare notes sometime.
On MacOS, using gem 3.2.15
, the installation works fine:
gem install miniexec
Successfully installed miniexec-0.0.6
Parsing documentation for miniexec-0.0.6
Done installing documentation for miniexec after 0 seconds
1 gem installed
However miniexec does not seem to land in the known PATH and does not land into /usr/local/opt/ruby/bin/
.
I tried another gem (bundler), the install went fine as well, but the bundler
executable did land in /usr/local/opt/ruby/bin/
.
After a fresh install, I somehow missed the dependencies.
The workaround was to install them manually:
gem install docker-api git
This is no option to answer the question "Do I have the latest version ?"
.gitlab-ci.yml may contain a directive like
include:
- path/to/foo.yml
feature request/suggestion:
merge the yaml files from the include directive into the main yml, to make jobs defined in those available to miniexec
YAML anchors combined with reference tags (i.e stuff like before_script
directives) are currently unsupported (or i've successfully broken it locally) and instead get called as if they were shell code
upstream doc: https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html#reference-tags
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.