Skip to content

Commit

Permalink
CI: Adjust /etc/hosts on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed May 23, 2020
1 parent 44a67c6 commit bd4b687
Show file tree
Hide file tree
Showing 22 changed files with 352 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-3.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-3.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-pypy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-macos-pypy3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-3.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-3.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-3.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-pypy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-ubuntu-pypy3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-windows-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-windows-3.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-x64-windows-3.6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ jobs:
shell: bash
run: python -c "import sys; print(sys.version)"

- name: "Setup /etc/hosts for Linux"
shell: bash
run: |
if [ `uname` = "Linux" ]; then
echo "\$ cat /etc/hosts"
cat /etc/hosts
echo
(
echo "127.0.0.1 localhost";
echo "::1 localhost ip6-localhost ip6-loopback";
) | sudo tee /etc/hosts
echo
echo "\$ cat /etc/hosts"
cat /etc/hosts
fi
- name: Resolve localhost
shell: bash
run: |
Expand Down
Loading

0 comments on commit bd4b687

Please sign in to comment.