.gitlab-ci.yml 645 Bytes
Newer Older
Nicolas Biri's avatar
Nicolas Biri committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
before_script:
  
  # Init ssh
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$SSH_PRIVATE_KEY")
  - ssh-add -L
  - curl -sL https://deb.nodesource.com/setup_4.x | bash -
  
  # For Docker builds disable host key checking. Be aware that by adding that
  # you are suspectible to man-in-the-middle attacks.
  # WARNING: Use this only with the Docker executor, if you use it with shell
  # you will overwrite your user's SSH config.
  - mkdir -p ~/.ssh
  - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  
  - apt-get update -qq && apt-get install -y nodejs && npm install
test:
  script:
    - npm test