summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-03 05:09:11 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-03 12:56:33 +0200
commit608fb3dad69e9f79283dd350639c2596379539a0 (patch)
tree13c1d62bebaa281b3630346206d1e46bf9920ab7 /.gitlab-ci.yml
parentccd061d3cb2136b195a4f33adc1391c0042415ef (diff)
Updated .gitlab-ci.yaml and other files to build the frontend
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 15 insertions, 5 deletions
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