Skip to content

Commit 8203c1d

Browse files
authored
Disable shellcheck linter rules (road-core#331)
1 parent df51940 commit 8203c1d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

scripts/codecov.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,20 @@ export CI_JOB_ID="${BUILD_ID}"
3232

3333
if [[ "${JOB_TYPE}" != "local" ]]; then
3434
if [[ -z "${ARTIFACT_DIR:-}" ]] || [[ ! -d "${ARTIFACT_DIR}" ]] || [[ ! -w "${ARTIFACT_DIR}" ]]; then
35+
# shellcheck disable=SC2016
3536
echo '${ARTIFACT_DIR} must be set for non-local jobs, and must point to a writable directory' >&2
3637
exit 1
3738
fi
3839
curl -sS https://codecov.io/bash -o "${ARTIFACT_DIR}/codecov.sh"
3940
bash <(cat "${ARTIFACT_DIR}/codecov.sh") -Z -K -f "${COVER_PROFILE}" -r "${REPO_OWNER}/${REPO_NAME}" "${REF_FLAGS}"
41+
# shellcheck disable=SC2181
4042
if [ $? -ne 0 ]; then
4143
echo "Failed uploading coverage report from a non local environment. Exiting gracefully with status code 0."
4244
exit 0
4345
fi
4446
else
4547
bash <(curl -s https://codecov.io/bash) -Z -K -f "${COVER_PROFILE}" -r "${REPO_OWNER}/${REPO_NAME}" "${REF_FLAGS}"
48+
# shellcheck disable=SC2181
4649
if [ $? -ne 0 ]; then
4750
echo "Failed uploading coverage report from local environment. Exiting gracefully with status code 0."
4851
exit 0

scripts/olsconfig.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Minimal service configuration
2+
---
3+
llm_providers:
4+
- name: my_bam
5+
type: bam
6+
url: "http://wont-be-used"
7+
models:
8+
- name: ibm/granite-3-8b-instruct
9+
ols_config:
10+
conversation_cache:
11+
type: memory
12+
memory:
13+
max_entries: 1000
14+
logging_config:
15+
app_log_level: info
16+
lib_log_level: warning
17+
default_provider: my_bam
18+
default_model: ibm/granite-3-8b-instruct
19+
dev_config:
20+
enable_dev_ui: false
21+
disable_auth: true
22+
disable_tls: true
23+

0 commit comments

Comments
 (0)