-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update cicd pipeline to scripts to allow local runs * add qld-qov ckan version * wrap controller for fs_download with IOError or OSError
- Loading branch information
Showing
6 changed files
with
86 additions
and
13 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
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
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,38 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Build site in CI. | ||
# | ||
set -ex | ||
|
||
|
||
|
||
if [ "$CKAN_GIT_ORG" != "ckan" ]; then | ||
SRC_DIR=/srv/app/src | ||
APP_DIR=/srv/app | ||
# PIP_SRC=${SRC_DIR} | ||
pushd ${APP_DIR} | ||
echo "pip install -e git+https://github.com/${CKAN_GIT_ORG}/ckan.git@${CKAN_GIT_VERSION}#egg=ckan" | ||
echo "update manually as its already a git pip installed module" | ||
sudo git config --global --add safe.directory "$SRC_DIR/ckan" | ||
popd | ||
|
||
pushd ${SRC_DIR}/ckan | ||
|
||
sudo git remote set-url origin "https://github.com/${CKAN_GIT_ORG}/ckan.git" | ||
time sudo git fetch origin #could be the tag/branch only if download time is slow | ||
sudo git clean -f | ||
sudo git reset --hard | ||
sudo find . -name '*.pyc' -delete | ||
sudo git checkout "${CKAN_GIT_VERSION}" | ||
pip install --no-binary :all: -r requirements.txt | ||
|
||
popd | ||
|
||
fi | ||
|
||
pip install -r requirements.txt | ||
pip install -r dev-requirements.txt | ||
pip install -e . | ||
# Replace default path to CKAN core config file with the one on the container | ||
sed -i -e "s|use = config:.*|use = config:${SRC_DIR}/ckan/test-core.ini|" test.ini | ||
|
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
CLICK_ARGS="--yes" ./scripts/ckan_cli db clean | ||
CKAN_INI=test.ini ./scripts/ckan_cli db init |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
pytest --ckan-ini=test.ini --cov=ckanext.s3filestore |