Skip to content

Commit

Permalink
In CI, run i18n_tool.py with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
rmol committed Oct 16, 2020
1 parent 1da9bf8 commit 355c747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ jobs:
command: |
BRANCH_MATCH=$(devops/scripts/match-ci-branch.sh "^i18n")
if ! [[ $BRANCH_MATCH =~ ^found ]]; then echo "Skipping: ${BRANCH_MATCH}"; exit 0; fi
sudo apt update && sudo apt install python-sh python-pybabel
export LOCALES="$(/usr/bin/python2 securedrop/i18n_tool.py list-locales --lines | circleci tests split | tr '\n' ' ')"
sudo apt update && sudo apt install python3-sh python3-babel
export LOCALES="$(/usr/bin/python3 securedrop/i18n_tool.py list-locales --lines | circleci tests split | tr '\n' ' ')"
fromtag=$(docker images | grep securedrop-test-xenial-py3 | head -n1 | awk '{print $2}')
DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-xenial-py3:${fromtag:-latest}" make translation-test
Expand Down

0 comments on commit 355c747

Please sign in to comment.