1
0
Fork 0

Add transifex and update travis

Dieser Commit ist enthalten in:
Angus 2018-07-17 10:28:27 +10:00
Ursprung ef7f6dfffc
Commit ac9ed0ef2f
2 geänderte Dateien mit 37 neuen und 11 gelöschten Zeilen

Datei anzeigen

@ -1,16 +1,27 @@
# Uncomment tests runner when tests are added.
sudo: required
services:
- docker
#services:
#- docker
before_install:
- plugin_name=${PWD##*/} && echo $plugin_name
- chmod -R 777 .
script:
- >
docker run
-e "COMMIT_HASH=origin/tests-passed"
-e "SKIP_CORE=1"
-e "SKIP_LINT=1"
-e SINGLE_PLUGIN=$plugin_name
-v $(pwd):/var/www/discourse/plugins/$plugin_name
discourse/discourse_test:release
#script:
#- >
#docker run
#-e "COMMIT_HASH=origin/tests-passed"
#-e "SKIP_LINT=1"
#-e "RUBY_ONLY=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

15
.tx/config Normale Datei
Datei anzeigen

@ -0,0 +1,15 @@
[main]
host = https://www.transifex.com
[discourse-custom-wizard.client-en-yml]
file_filter = config/locales/client.<lang>.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.<lang>.yml
source_file = config/locales/server.en.yml
source_lang = en
type = YML