-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename dev-requirements-debian to dev-sdw-requirements
rename dev-requirements to dev-buster-requirements remove redundant pip install update dev-requirements for bullseye instead of buster add ci jobs for bullseye fix circleci bullseye permission issue Signed-off-by: Allie Crevier <[email protected]> reformat using black remove unnecessary dev env clean up requirements files for different dev envs Signed-off-by: Allie Crevier <[email protected]> remove duplicate makefile target for updating a prod dependency update pip-tools to address jazzband#1617 update all dev dependencies and fix typo Signed-off-by: Allie Crevier <[email protected]>
- Loading branch information
Allie Crevier
committed
Jul 6, 2022
1 parent
b1525ff
commit d7cd4bb
Showing
14 changed files
with
1,758 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,15 @@ | |
common-steps: | ||
- &install_deps | ||
run: | ||
name: Install base dependencies for Debian python | ||
name: Install base dependencies for Bullseye python | ||
command: | | ||
set -e | ||
pip uninstall virtualenv -y || true | ||
sudo apt update && sudo apt install -y make git gnupg | ||
- &install_deps_on_buster | ||
run: | ||
name: Install base dependencies for Buster python | ||
command: | | ||
set -e | ||
pip uninstall virtualenv -y || true | ||
|
@@ -15,7 +23,16 @@ common-steps: | |
set -e | ||
make venv | ||
source .venv/bin/activate | ||
pip install --require-hashes -r requirements/dev-requirements.txt | ||
export PYTHONPATH=$PYTHONPATH:. # so alembic can get to Base metadata | ||
make check --keep-going | ||
- &run_tests_on_buster | ||
run: | ||
name: Install requirements and run tests | ||
command: | | ||
set -e | ||
make venv-buster | ||
source .venv/bin/activate | ||
export PYTHONPATH=$PYTHONPATH:. # so alembic can get to Base metadata | ||
make check --keep-going | ||
|
@@ -36,6 +53,20 @@ common-steps: | |
make safety | ||
- &install_packaging_dependencies | ||
run: | ||
name: Install Debian packaging dependencies and download wheels | ||
command: | | ||
set -x | ||
mkdir ~/packaging && cd ~/packaging | ||
# local builds may not have an ssh url, so || true | ||
git config --global --unset url.ssh://[email protected] || true | ||
git clone https://github.com/freedomofpress/securedrop-debian-packaging.git | ||
cd securedrop-debian-packaging | ||
sudo apt update && sudo apt install -y make | ||
make install-deps | ||
PKG_DIR=~/project make requirements | ||
- &install_packaging_dependencies_buster | ||
run: | ||
name: Install Debian packaging dependencies and download wheels | ||
command: | | ||
|
@@ -71,24 +102,47 @@ common-steps: | |
version: 2 | ||
jobs: | ||
build-buster: | ||
build-bullseye: | ||
docker: | ||
- image: debian:buster | ||
- image: circleci/python:3.9-bullseye | ||
steps: | ||
- *install_deps | ||
- checkout | ||
- *install_packaging_dependencies | ||
- *verify_requirements | ||
- *build_debian_package | ||
|
||
test-bullseye: | ||
docker: | ||
- image: circleci/python:3.9-bullseye | ||
steps: | ||
- *install_deps | ||
- checkout | ||
- run: sudo apt update && sudo apt install -y sqlite3 libqt5x11extras5 xvfb python3-tk python3-dev | ||
- *run_tests | ||
- store_test_results: | ||
path: test-results | ||
- *run_lint | ||
- *check_python_dependencies_for_vulns | ||
|
||
build-buster: | ||
docker: | ||
- image: debian:buster | ||
steps: | ||
- *install_deps_on_buster | ||
- checkout | ||
- *install_packaging_dependencies_buster | ||
- *verify_requirements | ||
- *build_debian_package | ||
|
||
test-buster: | ||
docker: | ||
- image: debian:buster | ||
steps: | ||
- *install_deps | ||
- *install_deps_on_buster | ||
- checkout | ||
- run: apt-get update && apt-get install -y sqlite3 libqt5x11extras5 xvfb python3-tk python3-dev | ||
- *run_tests | ||
- *run_tests_on_buster | ||
- store_test_results: | ||
path: test-results | ||
- *run_lint | ||
|
@@ -98,6 +152,8 @@ workflows: | |
version: 2 | ||
securedrop_client_ci: | ||
jobs: | ||
- test-bullseye | ||
- build-bullseye | ||
- test-buster | ||
- build-buster | ||
|
||
|
@@ -110,5 +166,7 @@ workflows: | |
only: | ||
- main | ||
jobs: | ||
- test-bullseye | ||
- build-bullseye | ||
- test-buster | ||
- build-buster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-r dev-sdw-requirements.in | ||
PyQt5==5.11.3 # Match version of system package on Buster | ||
sip==4.19.8 # Match version of system package on Buster |
Oops, something went wrong.