Skip to content

Commit

Permalink
integrate transifex into travis CI (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz authored and ltalirz committed Jul 15, 2019
1 parent 266d2d1 commit 0276a8a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
- BUILD: docs
TARGET: latexpdf
- BUILD: pre-commit
- BUILD: transifex-upload

install:
- pip install --upgrade pip
Expand All @@ -38,6 +39,13 @@ script:
# -C docs: switch to docs/ directory
make -C docs pre-docs
make -C docs $TARGET
elif [ "$BUILD" == "transifex-upload" ]; then
TRANSIFEX_PROJECT_NAME="aiida-tutorials"
sphinx-build -b gettext -D gettext_compact=0 docs locale
tx init --no-interactive
sphinx-intl update-txconfig-resources --pot-dir locale --transifex-project-name ${TRANSIFEX_PROJECT_NAME}
sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\n' > ~/.transifexrc
tx push -s
else
pre-commit install
pre-commit run --all-files || ( git status --short; git diff ; exit 1 )
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ ipykernel>=4.10,<5.0
pre-commit>=1.16,<2
prospector==1.1.6.2
yapf==0.27.0
# transifex
sphinx-intl==2.0.0
transifex-client==0.13.6

0 comments on commit 0276a8a

Please sign in to comment.