Skip to content

Commit

Permalink
Move shell scripts into dedicated directory
Browse files Browse the repository at this point in the history
... in anticipation of PRs 924 and 916.
  • Loading branch information
jrfnl committed Feb 11, 2025
1 parent af42dde commit 6cccb18
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ PORT=8080 vendor/bin/start.sh
export "REQUESTS_TEST_HOST_HTTP=localhost:8080"

# Start the proxy server
PORT=9002 tests/utils/proxy/start.sh
PORT=9003 AUTH="test:pass" tests/utils/proxy/start.sh
PORT=9002 scripts/proxy/start.sh
PORT=9003 AUTH="test:pass" scripts/proxy/start.sh
export "REQUESTS_HTTP_PROXY=localhost:9002"
export "REQUESTS_HTTP_PROXY_AUTH=localhost:9003"
export "REQUESTS_HTTP_PROXY_AUTH_USER=test"
Expand All @@ -126,8 +126,8 @@ export "REQUESTS_HTTP_PROXY_AUTH_PASS=pass"
composer test

# Stop the proxy server
PORT=9002 tests/utils/proxy/stop.sh
PORT=9003 tests/utils/proxy/stop.sh
PORT=9002 scripts/proxy/stop.sh
PORT=9003 scripts/proxy/stop.sh

# Stop the test server
vendor/bin/stop.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:

- name: Start proxy server
run: |
PORT=9002 tests/utils/proxy/start.sh
PORT=9003 AUTH="test:pass" tests/utils/proxy/start.sh
PORT=9002 scripts/proxy/start.sh
PORT=9003 AUTH="test:pass" scripts/proxy/start.sh
echo "REQUESTS_HTTP_PROXY=localhost:9002" >> "$GITHUB_ENV"
echo "REQUESTS_HTTP_PROXY_AUTH=localhost:9003" >> "$GITHUB_ENV"
echo "REQUESTS_HTTP_PROXY_AUTH_USER=test" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -105,8 +105,8 @@ jobs:
- name: Stop proxy server
continue-on-error: true
run: |
PORT=9002 tests/utils/proxy/stop.sh
PORT=9003 tests/utils/proxy/stop.sh
PORT=9002 scripts/stop.sh
PORT=9003 scripts/stop.sh
- name: Stop test server
continue-on-error: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ jobs:

- name: Start proxy server
run: |
PORT=9002 tests/utils/proxy/start.sh
PORT=9003 AUTH="test:pass" tests/utils/proxy/start.sh
PORT=9002 scripts/proxy/start.sh
PORT=9003 AUTH="test:pass" scripts/proxy/start.sh
echo "REQUESTS_HTTP_PROXY=localhost:9002" >> "$GITHUB_ENV"
echo "REQUESTS_HTTP_PROXY_AUTH=localhost:9003" >> "$GITHUB_ENV"
echo "REQUESTS_HTTP_PROXY_AUTH_USER=test" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -137,8 +137,8 @@ jobs:
- name: Stop proxy server
continue-on-error: true
run: |
PORT=9002 tests/utils/proxy/stop.sh
PORT=9003 tests/utils/proxy/stop.sh
PORT=9002 scripts/proxy/stop.sh
PORT=9003 scripts/proxy/stop.sh
- name: Stop test server
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ build/ghpages/artifacts
certificates/etag-*.txt

# Ignore temporary files generated by the testing proxy.
tests/utils/proxy/__pycache__
tests/utils/proxy/*.pid
scripts/proxy/__pycache__
scripts/proxy/*.pid
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6cccb18

Please sign in to comment.