Skip to content

Commit c9f77b9

Browse files
committed
Remove no longer needed Travis CI support
1 parent daaad84 commit c9f77b9

File tree

3 files changed

+4
-107
lines changed

3 files changed

+4
-107
lines changed

.ci/after-failure.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,7 @@ do
1717
(>&1 printf ">>> START (%d)\\n%s\\n<<< END (%d)\\n\\n" $count "$(cat "$file")" $count)
1818
done < <(find ./tests -type f \( -name '*.out' -o -name '*.mem' \) -print0)
1919

20-
# for some reason Ubuntu 18.04 on Travis CI doesn't install gdb
21-
function install_gdb() {
22-
if [ "${CI}" = "true" ] && [ "$(command -v gdb 2>/dev/null)" = "" ]
23-
then
24-
(>&1 echo "Install gdb...")
25-
sudo apt-get install --no-install-recommends --quiet --assume-yes gdb 1> /dev/null
26-
fi
27-
}
28-
2920
for i in /tmp/core.php.*; do
30-
install_gdb
3121
(>&1 printf "Found core dump file: %s\\n\\n" "$i")
3222
gdb -q "$(phpenv which php)" "$i" <<EOF
3323
set pagination 0

.github/workflows/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
if: runner.os == 'Linux'
6262
run: |
6363
sudo apt-get update --quiet --yes 1>/dev/null
64-
sudo apt-get install --no-install-recommends --quiet --yes lcov
64+
sudo apt-get install --no-install-recommends --quiet --yes lcov gdb
6565
6666
- name: Setup Prerequisites (macOS)
6767
if: runner.os == 'macOS'
@@ -80,6 +80,7 @@ jobs:
8080
echo "::set-env name=RE2C_VERSION::${{ matrix.re2c }}"
8181
echo "::set-env name=PATH::$PATH:$HOME/bin:$(brew --prefix lcov)/bin"
8282
echo "::set-env name=MAKEFLAGS::-j$(getconf _NPROCESSORS_ONLN)"
83+
echo "::set-env name=CI::true"
8384
8485
- name: Setup Core Dump (Linux)
8586
if: runner.os == 'Linux'
@@ -108,12 +109,8 @@ jobs:
108109
run: make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
109110

110111
- name: Print failures
111-
if: failure()
112-
run: |
113-
re2c --version
114-
php -v
115-
php -m
116-
.ci/after-failure.sh
112+
if: failure() && runner.os == 'Linux'
113+
run: .ci/after-failure.sh
117114

118115
- name: Capture coverage data
119116
if: success() && matrix.ccov == 'ON'

.travis.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)