選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

transifex.sh 665B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. #
  3. # Push source and translation files to Transifex.
  4. #
  5. # This script is called after every successful build on Travis CI.
  6. # It relies on $TRANSIFEX_PASSWORD being set in .travis.yml
  7. # Only run once, and only on master
  8. echo $TRAVIS_JOB_NUMBER | grep "\.1$"
  9. if [ $? -eq 0 ] && [ $TRAVIS_BRANCH == master ]
  10. then
  11. echo "Submitting translation files to Transifex"
  12. make messages
  13. pip install "transifex-client==0.10"
  14. # Write .transifexrc file
  15. echo "[https://www.transifex.com]
  16. hostname = https://www.transifex.com
  17. password = $TRANSIFEX_PASSWORD
  18. token =
  19. username = oscar_bot" > ~/.transifexrc
  20. tx push --source --no-interactive
  21. fi