Skip to content

Commit

Permalink
[WIP] ci(lint): verify machine objects
Browse files Browse the repository at this point in the history
Adapted from
freedomofpress/securedrop-client#6fcd4ddc4ac6aaf034aa841bbd5651c8ac703737.
Here we do treat "make verify-mo" as a linter, to avoid running it (over
n languages) n times in each of n "translation-tests" jobs.
  • Loading branch information
cfm committed Sep 27, 2023
1 parent 882c714 commit 71774a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ jobs:
DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \
bash -c "/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/develop-requirements.txt && make -C .. lint"
- run:
name: Check that translation machine objects are reproducible
command: |
fromtag=$(docker images |grep securedrop-test-focal-py3 |head -n1 |awk '{print $2}')
DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \
bash -c "/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/develop-requirements.txt && make -C .. verify-mo"
rust:
# Keep version in sync with rust-toolchain.toml
docker:
Expand Down

0 comments on commit 71774a7

Please sign in to comment.