File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 66
66
export LOCAL_GID=$(id -g $USER)
67
67
export $(grep -v '^#' .env_simple | xargs)
68
68
docker compose -f docker-compose.yaml -f docker-compose.db.yaml -f docker-compose.prod.yaml up --quiet-pull -d --wait
69
+ docker compose -f docker-compose.yaml -f docker-compose.db.yaml exec -T ows /bin/sh -c "cd /src && ./check-code-all.sh --no-test"
69
70
70
71
# Run some tests on the images
71
72
# These tests require a working database
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# Convenience script for running Travis-like checks.
3
+
4
+ while [[ $# -gt 0 ]]; do
5
+ case $1 in
6
+ --no-test)
7
+ NO_TEST=1
8
+ shift
9
+ ;;
10
+ -* |--* )
11
+ echo " Unknown option $1 "
12
+ exit 1
13
+ ;;
14
+ esac
15
+ done
16
+
3
17
set -ex
4
18
5
19
# Initialise ODC schemas
@@ -150,7 +164,9 @@ datacube-ows-update
150
164
151
165
# Run tests, taking coverage.
152
166
# Users can specify extra folders as arguments.
153
- python3 -m pytest --cov=datacube_ows --cov-report=xml integration_tests/
154
- cp /tmp/coverage.xml /mnt/artifacts
167
+ if [ -z " $NO_TEST " ]; then
168
+ python3 -m pytest --cov=datacube_ows --cov-report=xml integration_tests/
169
+ cp /tmp/coverage.xml /mnt/artifacts, connect to pre-indexed database
170
+ fi
155
171
156
172
set +x
You can’t perform that action at this time.
0 commit comments