Skip to content

Commit

Permalink
Merge pull request #64 from cytopia/ci-fixes
Browse files Browse the repository at this point in the history
Fix GitHub Action builds
  • Loading branch information
cytopia authored May 8, 2020
2 parents 05b3eeb + 485287b commit 02c678c
Show file tree
Hide file tree
Showing 27 changed files with 3,099 additions and 265 deletions.
148 changes: 138 additions & 10 deletions .github/workflows/test-x64-macos-2.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,49 +40,177 @@ jobs:
- name: "[BEHAVIOUR] Client quits correctly"
shell: bash
run: |
make _test-behaviour-quit--client
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--client
env:
RETRIES: 5

- name: "[BEHAVIOUR] Server quits correctly"
shell: bash
run: |
make _test-behaviour-quit--server
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--server
env:
RETRIES: 5

# ------------------------------------------------------------
# Tests: Modes
# ------------------------------------------------------------

- name: "[MODES] Local port forwarding"
shell: bash
run: |
make _test-mode--local_forward
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--local_forward
env:
RETRIES: 5

- name: "[MODES] Remote port forwarding"
shell: bash
run: |
make _test-mode--remote_forward
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--remote_forward
env:
RETRIES: 5

# ------------------------------------------------------------
# Tests: Options
# ------------------------------------------------------------

- name: "[OPTIONS] -n/--nodns"
shell: bash
run: |
make _test-options--nodns
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--nodns
env:
RETRIES: 5

- name: "[OPTIONS] -C/--crlf"
shell: bash
run: |
make _test-options--crlf
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--crlf
env:
RETRIES: 5

- name: "[OPTIONS] --keep-open"
shell: bash
run: |
make _test-options--keep_open
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--keep_open
env:
RETRIES: 5

- name: "[OPTIONS] --reconn"
shell: bash
run: |
make _test-options--reconn
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--reconn
env:
RETRIES: 5

- name: "[OPTIONS] --ping-intvl"
shell: bash
run: |
make _test-options--ping_intvl
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_intvl
env:
RETRIES: 5

- name: "[OPTIONS] --ping-word"
shell: bash
run: |
make _test-options--ping_word
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_word
env:
RETRIES: 5
148 changes: 138 additions & 10 deletions .github/workflows/test-x64-macos-3.5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,49 +40,177 @@ jobs:
- name: "[BEHAVIOUR] Client quits correctly"
shell: bash
run: |
make _test-behaviour-quit--client
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--client
env:
RETRIES: 5

- name: "[BEHAVIOUR] Server quits correctly"
shell: bash
run: |
make _test-behaviour-quit--server
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-behaviour-quit--server
env:
RETRIES: 5

# ------------------------------------------------------------
# Tests: Modes
# ------------------------------------------------------------

- name: "[MODES] Local port forwarding"
shell: bash
run: |
make _test-mode--local_forward
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--local_forward
env:
RETRIES: 5

- name: "[MODES] Remote port forwarding"
shell: bash
run: |
make _test-mode--remote_forward
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-mode--remote_forward
env:
RETRIES: 5

# ------------------------------------------------------------
# Tests: Options
# ------------------------------------------------------------

- name: "[OPTIONS] -n/--nodns"
shell: bash
run: |
make _test-options--nodns
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--nodns
env:
RETRIES: 5

- name: "[OPTIONS] -C/--crlf"
shell: bash
run: |
make _test-options--crlf
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--crlf
env:
RETRIES: 5

- name: "[OPTIONS] --keep-open"
shell: bash
run: |
make _test-options--keep_open
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--keep_open
env:
RETRIES: 5

- name: "[OPTIONS] --reconn"
shell: bash
run: |
make _test-options--reconn
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--reconn
env:
RETRIES: 5

- name: "[OPTIONS] --ping-intvl"
shell: bash
run: |
make _test-options--ping_intvl
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_intvl
env:
RETRIES: 5

- name: "[OPTIONS] --ping-word"
shell: bash
run: |
make _test-options--ping_word
retry() {
for n in $(seq ${RETRIES}); do
echo "[${n}/${RETRIES}] ${*}";
if eval "${*}"; then
return 0;
fi;
sleep 10;
done;
return 1;
}
retry make _test-options--ping_word
env:
RETRIES: 5
Loading

0 comments on commit 02c678c

Please sign in to comment.