-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix longstanding test case failure - fix google drive downloading using gdrive ... stupidly google has stopped working for plain requests - migrate away from google drive downloading on the test server - pin numpy to <=1.19.5 -- newer numpy has shown numerical problems elsewhere - switch to py3.6 and higher - Add Python3.8 dockerfile and test
- Loading branch information
Showing
6 changed files
with
75 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,41 @@ | ||
set -e | ||
set -u | ||
set -x | ||
WORKSPACE_ROOT="$WORKSPACE/$BUILD_NUMBER" | ||
echo "Setting up build in $WORKSPACE_ROOT" | ||
TEST_OUTPUT_DIR_REL=testcase_output | ||
TEST_OUTPUT_DIR="$WORKSPACE_ROOT/$TEST_OUTPUT_DIR_REL" | ||
mkdir $TEST_OUTPUT_DIR | ||
TEST_DATA_DIR="$WORKSPACE/../../../test-data" | ||
|
||
|
||
# build | ||
docker build -f ${WORKSPACE_ROOT}/projects/tricolour/docker/python36.docker -t tricolour.1804.py36:${BUILD_NUMBER} ${WORKSPACE_ROOT}/projects/tricolour/ | ||
docker build -f ${WORKSPACE_ROOT}/projects/tricolour/docker/python38.docker -t tricolour.2004.py38:${BUILD_NUMBER} ${WORKSPACE_ROOT}/projects/tricolour/ | ||
|
||
#run tests | ||
docker run --rm tricolour.1804.py36:${BUILD_NUMBER} | ||
tar xvf $TEST_DATA_DIR/acceptance_test_data.tar.gz -C $TEST_OUTPUT_DIR | ||
TEST_MS_REL=1519747221.subset.ms | ||
|
||
# test 3.6 | ||
docker run \ | ||
--rm \ | ||
-v $TEST_OUTPUT_DIR:/testdata \ | ||
--env TRICOLOUR_TEST_MS=/testdata/$TEST_MS_REL \ | ||
--workdir /code \ | ||
--entrypoint /bin/sh \ | ||
tricolour.1804.py36:${BUILD_NUMBER} \ | ||
-c "python3 -m pytest --flake8 -s -vvv ." | ||
|
||
rm -rf $TEST_OUTPUT_DIR/TEST_MS_REL | ||
tar xvf $TEST_DATA_DIR/acceptance_test_data.tar.gz -C $TEST_OUTPUT_DIR | ||
|
||
# test 3.8 | ||
docker run \ | ||
--rm \ | ||
-v $TEST_OUTPUT_DIR:/testdata \ | ||
--env TRICOLOUR_TEST_MS=/testdata/$TEST_MS_REL \ | ||
--workdir /code \ | ||
--entrypoint /bin/sh \ | ||
tricolour.2004.py38:${BUILD_NUMBER} \ | ||
-c "python3 -m pytest --flake8 -s -vvv ." |
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,19 @@ | ||
FROM kernsuite/base:7 | ||
|
||
# Install base requirements | ||
RUN docker-apt-install python3-pip \ | ||
build-essential \ | ||
cmake \ | ||
casacore-dev \ | ||
python-numpy \ | ||
python-setuptools \ | ||
libboost-python-dev \ | ||
libcfitsio-dev \ | ||
wcslib-dev | ||
|
||
RUN pip3 install --upgrade pip setuptools | ||
ADD . /code | ||
WORKDIR /code | ||
|
||
# Install base + testing packages | ||
RUN pip3 install .[testing] |
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