Skip to content

Commit 13a0e2c

Browse files
committed
fix: fixing build failure
dependency: none
1 parent a80fc85 commit 13a0e2c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ cache: pip
77
notifications:
88
email: true
99

10+
11+
1012
matrix:
1113
include:
1214
- python: 3.10
@@ -18,8 +20,18 @@ matrix:
1820
&& openssl aes-256-cbc -K $encrypted_27cb64608ff6_key -iv $encrypted_27cb64608ff6_iv -in dl.env.enc -out dl.env -d || true
1921
&& openssl aes-256-cbc -K $encrypted_fc092b9428d6_key -iv $encrypted_fc092b9428d6_iv -in cis.env.enc -out cis.env -d || true
2022
&& openssl aes-256-cbc -K $encrypted_89a9eb4f9417_key -iv $encrypted_89a9eb4f9417_iv -in dns.env.enc -out dns.env -d || true
23+
# force prod IAM inside the file so dotenv can't override you
24+
- sed -i 's#^CIS_SERVICES_AUTH_URL=.*#CIS_SERVICES_AUTH_URL=https://iam.cloud.ibm.com/identity/token#g' cis.env || true
25+
- 'grep -q "^CIS_SERVICES_AUTH_URL=" cis.env || echo "CIS_SERVICES_AUTH_URL=https://iam.cloud.ibm.com/identity/token" >> cis.env'
26+
# also export for safety
2127
- export CIS_SERVICES_AUTH_URL="https://iam.cloud.ibm.com/identity/token"
22-
- echo "DEBUG CIS_SERVICES_AUTH_URL=${CIS_SERVICES_AUTH_URL}"
28+
# debug
29+
- bash -c 'echo "DEBUG (cis.env):"; (test -f cis.env && grep CIS_SERVICES_AUTH_URL cis.env) || echo "<missing cis.env or var>"'
30+
- bash -c 'echo "DEBUG (env): CIS_SERVICES_AUTH_URL=${CIS_SERVICES_AUTH_URL}"'
31+
- python - <<'PY'
32+
import os
33+
print("PYDEBUG before tox: CIS_SERVICES_AUTH_URL =", os.getenv("CIS_SERVICES_AUTH_URL"))
34+
PY
2335
- python: 3.11
2436
- python: 3.12
2537

0 commit comments

Comments
 (0)