Commit ef47c55a authored by Tino Goratsch's avatar Tino Goratsch

update the CI pipeline

parent d3bdb9b6
Pipeline #43136518 passed with stages
in 2 minutes and 36 seconds
......@@ -16,8 +16,6 @@ stages:
- ${COMPOSER_HOME}
- vendor
- .php_cs.cache
before_script:
- bash ./build/gitlab/before_script.sh > /dev/null
build:composer:
extends: .php-base
......@@ -59,14 +57,12 @@ test:phpstan:
- php -d memory_limit=-1 vendor/bin/phpstan analyse
test:eslint:
image: node:slim
image: node:lts-alpine
stage: test
cache:
key: node-$CI_COMMIT_REF_NAME
paths:
- ${npm_config_cache}
before_script:
- bash ./build/gitlab/before_script.sh > /dev/null
script:
- npm ci
- npm run-script eslint
......
#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
which git || (apt-get update -yqq && apt-get install apt-utils git -yqq)
which ssh-agent || (apt-get install openssh-client -y )
#!/bin/sh
eval $(ssh-agent -s)
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
ssh-add <(echo "$SSH_PRIVATE_KEY")
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
ssh-add -l
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment