From 608fb3dad69e9f79283dd350639c2596379539a0 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 3 Aug 2018 05:09:11 +0200 Subject: Updated .gitlab-ci.yaml and other files to build the frontend --- .gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8018543b..9fed9ea0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: php cache: paths: - - .composer + - .composer services: - mariadb:10.2 @@ -37,7 +37,16 @@ before_script: # Install Composer - &before_install_composer |- curl -sS https://getcomposer.org/installer | php -- --no-ansi --install-dir /usr/local/bin/ --filename composer - /usr/local/bin/composer --no-ansi install + composer --no-ansi install + # Install Node.js and Yarn + - &before_install_yarn |- + apt -yqq install gnupg2 apt-transport-https + curl -sL https://deb.nodesource.com/setup_8.x | bash - + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - + echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list + apt -yqq update && apt -yqq install nodejs yarn + yarn install + yarn build .test_template: &test_definition stage: test @@ -61,11 +70,12 @@ test:7.1: services: [] stage: deploy only: - - master + - master before_script: - *before_fix_permissions - *before_install_packages - *before_install_composer + - *before_install_yarn .deploy_template_script: # Configure SSH @@ -78,8 +88,8 @@ test:7.1: - &deployment_dependencies |- chmod +x ./deploy.sh apt update && apt install -yqq rsync openssh-client - /usr/local/bin/composer --no-ansi install --no-dev - /usr/local/bin/composer --no-ansi dump-autoload --optimize + composer --no-ansi install --no-dev + composer --no-ansi dump-autoload --optimize deploy_staging: <<: *deploy_definition -- cgit v1.2.3-54-g00ecf