Skip to content

Commit

Permalink
Shallow fetch the Checkbox repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Oct 1, 2024
1 parent 211a08a commit e2a1ead
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/lab_dispatch/generic_source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ test_data:
_run clean_machine --im-sure
_run sudo add-apt-repository ppa:checkbox-dev/edge
_put $RESOURCES_PATH/build_install_deb.py :
_run git clone https://github.com/canonical/checkbox.git
_run git -C checkbox checkout $CHECKBOX_REVISION
# clone the Checkbox revision without history (easier for slow systems, preserves RAM/storage/networking)
_run mkdir checkbox
_run git -C checkbox init --quiet
_run git -C checkbox fetch --depth 1 https://github.com/canonical/checkbox.git $CHECKBOX_REVISION
_run git -C checkbox reset --hard FETCH_HEAD
_run wait_for_packages_complete
_run python3 build_install_deb.py --clean checkbox/checkbox-ng \
checkbox/checkbox-support checkbox/providers/resource \
Expand Down

0 comments on commit e2a1ead

Please sign in to comment.