#!/bin/bash # install node.js and tools (npm, gulp, bower) if needed if [[ -z $(which node) ]]; then curl -v --connect-timeout 60 --retry 3 -sL https://deb.nodesource.com/setup_8.x | bash - apt-get install -y nodejs # issue SPEC-979 # this install fails with timeout for unknown reason - let's comment it # npm install --global gulp bower fi # tools used to generate developer website (https://github.com/automotive-grade-linux/docs-agl) curl -v --connect-timeout 60 --retry 3 -sSL https://rvm.io/mpapis.asc | gpg --import --no-tty - \ && curl -v --connect-timeout 60 --retry 3 -sSL https://get.rvm.io | bash -s stable --ruby --gems=jekyll