Updates to allow building CrowdIn translations in CI/CD build.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-05-28 00:35:30 -05:00
parent dc2adade02
commit db8010241a
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
4 changed files with 12 additions and 14 deletions

View File

@ -1,3 +1,9 @@
base_url: "https://crowdin.com"
base_path: "/project/azuracast"
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
files:
- source: /resources/locale/default.pot
translation: /resources/locale/%locale_with_underscore%.UTF-8/LC_MESSAGES/default.po

View File

@ -5,8 +5,5 @@ services:
image: azuracast_cli:latest
build:
context: ./util/docker/testing
environment:
LANG: en_US.UTF-8
APPLICATION_ENV: "testing"
volumes:
- .:/var/azuracast/www

View File

@ -1,6 +1,10 @@
FROM azuracast/azuracast_web_v2:latest
RUN apt-get update \
&& apt-get install -q -y php7.4-xdebug
ENV PATH="${PATH}:/var/azuracast/.composer/vendor/bin"
RUN apt-get update \
&& apt-get install -q -y php7.4-xdebug
ENV LANG="en_US.UTF-8" \
APPLICATION_ENV="testing"

View File

@ -1,9 +0,0 @@
FROM azuracast/azuracast_web:latest
RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
&& mkdir -p /tmp/blackfire \
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > /etc/php/7.4/fpm/conf.d/blackfire.ini \
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz