Skip to content
Snippets Groups Projects
Commit c4293bb3 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Feature/js translations

parent 9e6764ad
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@ variables:
stages:
- prepare-vendor
- prepare-node
- prepare-translations
- tools
- tests
- pre-deploy
......
......@@ -48,6 +48,7 @@ docs refresh:
- deploy
dependencies:
- prepare npm assets
- prepare translations
artifacts:
expire_in: 6 mos
name: "production release"
......
......@@ -51,3 +51,19 @@ prepare npm assets:
- if [[ -f package.json ]]; then npm install --prefer-offline --no-audit --progress=false; fi
- if [[ -f package.json ]]; then npm run prod; fi
- if [[ -f tests/codeception/prepare_npm.sh ]]; then sh tests/codeception/prepare_npm.sh; fi
prepare translations:
<<: *job-prepare
image: composer:1.10
tags:
- vendor
stage: prepare-translations
dependencies:
- prepare npm assets
except:
variables:
- $IS_NPM_LIBRARY
interruptible: true
script:
- composer generate-pot
- composer merge-translations
......@@ -6,6 +6,7 @@
entrypoint: [""]
dependencies:
- prepare npm assets
- prepare translations
variables:
WP_CLI_CACHE_DIR: /cache/wp-cli
APACHE_DOCUMENT_ROOT: ${CI_PROJECT_DIR}/tests/wordpress
......
......@@ -12,6 +12,7 @@
- integration
dependencies:
- prepare npm assets
- prepare translations
services:
- mysql:5.6
before_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment