milch / fastlane-docker

fastlane tools docker image based on CircleCI's ruby image
MIT License
11 stars 4 forks source link

Node/npm #1

Open janpio opened 6 years ago

janpio commented 6 years ago

For a new feature in the fastlane tests (https://github.com/fastlane/fastlane/pull/13166, measure and benchmark startup time) I use a npm package called gnomon to measure execution time of fastlane --help.

To install gnomon on the Linux image, I have to manually install node currently:

    unless Helper.windows? || Helper.mac?
      sh('curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -')
      sh('sudo apt-get install -y nodejs')
      sh('sudo npm install -g gnomon')
    end

https://github.com/fastlane/fastlane/pull/13166/files#diff-56c5021ef06ac6cea807ae53269b6f4fR54

It would be great if the image did already contain that so this additional setup would not be necessary.

(PS: Or did I mess up and this should work?)