From f5ab7c65b4566fa7b0634e2d9e299507e1821f67 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 6 Mar 2018 11:21:40 +0800 Subject: [PATCH] Add transifex config --- .travis.yml | 24 ++++++++++++++++++++++++ .tx/config | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .travis.yml create mode 100644 .tx/config diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..833dfc4e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +# We want to use the KVM-based system, so require sudo +sudo: required +services: + - docker + +before_install: + - plugin_name=${PWD##*/} && echo $plugin_name + +script: + - > + docker run + -e "COMMIT_HASH=origin/tests-passed" + -e "SKIP_CORE=1" + -e SINGLE_PLUGIN=$plugin_name + -v $(pwd):/var/www/discourse/plugins/$plugin_name + discourse/discourse_test:release + +after_success: + - pip install virtualenv + - virtualenv ~/env + - source ~/env/bin/activate + - pip install transifex-client + - sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc + - tx push -s diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..10a22b80 --- /dev/null +++ b/.tx/config @@ -0,0 +1,16 @@ +[main] +host = https://www.transifex.com + +[discourse-custom-wizard.client-en-yml] +file_filter = config/locales/client..yml +minimum_perc = 0 +source_file = config/locales/client.en.yml +source_lang = en +type = YML + +[discourse-custom-wizard.server-en-yml] +file_filter = config/locales/server..yml +source_file = config/locales/server.en.yml +source_lang = en +type = YML +