Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-21 17:00:29 +01:00
Add transifex and update travis
Dieser Commit ist enthalten in:
Ursprung
ef7f6dfffc
Commit
ac9ed0ef2f
2 geänderte Dateien mit 37 neuen und 11 gelöschten Zeilen
33
.travis.yml
33
.travis.yml
|
@ -1,16 +1,27 @@
|
||||||
|
# Uncomment tests runner when tests are added.
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
services:
|
#services:
|
||||||
- docker
|
#- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- plugin_name=${PWD##*/} && echo $plugin_name
|
- plugin_name=${PWD##*/} && echo $plugin_name
|
||||||
|
- chmod -R 777 .
|
||||||
|
|
||||||
script:
|
#script:
|
||||||
- >
|
#- >
|
||||||
docker run
|
#docker run
|
||||||
-e "COMMIT_HASH=origin/tests-passed"
|
#-e "COMMIT_HASH=origin/tests-passed"
|
||||||
-e "SKIP_CORE=1"
|
#-e "SKIP_LINT=1"
|
||||||
-e "SKIP_LINT=1"
|
#-e "RUBY_ONLY=1"
|
||||||
-e SINGLE_PLUGIN=$plugin_name
|
#-e SINGLE_PLUGIN=$plugin_name
|
||||||
-v $(pwd):/var/www/discourse/plugins/$plugin_name
|
#-v $(pwd):/var/www/discourse/plugins/$plugin_name
|
||||||
discourse/discourse_test:release
|
#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
15
.tx/config
Normale Datei
|
@ -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
|
Laden …
In neuem Issue referenzieren