Skip to content

Commit 98e6279

Browse files
committed
Drop TravisCI for GitHub Actions
1 parent e0d0907 commit 98e6279

File tree

15 files changed

+100
-259
lines changed

15 files changed

+100
-259
lines changed

.ci/travis_env.sh

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

.ci/travis_nix.sh

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

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
**/tmp-php.ini
5454

5555
# ci and docker
56-
.github
57-
.travis.*
56+
**/.github/*
5857
**/*.nix
5958
**/*Dockerfile
6059
**/.dockerignore

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
*.h linguist-language=C
22
*.nix linguist-documentation=true
3-
/.travis.* linguist-documentation=true
4-
/.ci/* linguist-documentation=true
3+
/.github/* linguist-documentation=true
54
/nix/* linguist-documentation=true
65
/shoco/* linguist-vendored=true

.github/workflows/docker.sh renamed to .github/scripts/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e -o pipefail
4-
source .ci/fold.sh
4+
source .github/scripts/fold.sh
55

66
# config
77
export DOCKER_NAME=${DOCKER_NAME:-"alpine"}
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e -o pipefail
4-
source .ci/fold.sh
4+
source .github/scripts/fold.sh
55

66
# config
77
export PHP_VERSION=${PHP_VERSION:-"7.4"}
@@ -12,11 +12,11 @@ export SUDO=sudo
1212
function install_apt_packages() (
1313
${SUDO} add-apt-repository ppa:ondrej/php
1414
${SUDO} apt-get update
15-
${SUDO} apt-get install -y composer jq php${PHP_VERSION}-dev
15+
${SUDO} apt-get install -y composer jq php${PHP_VERSION}-dev lcov
1616
)
1717

1818
cifold "install apt packages" install_apt_packages
1919

2020
# source and execute script used in travis
21-
source .ci/travis_php.sh
21+
source .github/scripts/suite.sh
2222
run_all

.github/workflows/osx.sh renamed to .github/scripts/osx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e -o pipefail
4-
source .ci/fold.sh
4+
source .github/scripts/fold.sh
55

66
# config
77
export PHP_VERSION=${PHP_VERSION:-"7.4"}

.ci/travis_php.sh renamed to .github/scripts/suite.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ export TEST_PHP_EXECUTABLE=`which php`
1111
function before_install() (
1212
set -e -o pipefail
1313

14-
# Don't install this unless we're actually on travis
15-
if [[ "${COVERAGE}" = "true" ]] && [[ "${TRAVIS}" = "true" ]]; then
16-
gem install coveralls-lcov
17-
fi
14+
return 0
1815
)
1916

2017
function install() (
@@ -57,9 +54,6 @@ function after_success() (
5754
--remove coverage.info "/home/travis/build/include/*" \
5855
--compat-libtool \
5956
--output-file coverage.info
60-
61-
echo "Uploading coverage"
62-
coveralls-lcov coverage.info
6357
fi
6458
)
6559

.github/workflows/docker.yml

Lines changed: 33 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,42 @@
1-
21
name: docker
32

43
on:
54
push:
65
branches:
7-
- master
8-
- github-actions
9-
- ci
6+
- master
7+
- github-actions
8+
- ci
109
pull_request:
1110
branches:
12-
- master
11+
- master
1312

1413
jobs:
15-
debian_php72:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v2
19-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
20-
env:
21-
PHP_VERSION: "7.2"
22-
DOCKER_NAME: debian
23-
run: bash ./.github/workflows/docker.sh
24-
debian_php73:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- uses: actions/checkout@v2
28-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
29-
env:
30-
PHP_VERSION: "7.3"
31-
DOCKER_NAME: debian
32-
run: bash ./.github/workflows/docker.sh
33-
debian_php74:
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v2
37-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
38-
env:
39-
PHP_VERSION: "7.4"
40-
DOCKER_NAME: debian
41-
run: bash ./.github/workflows/docker.sh
42-
debian_php80:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v2
46-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
47-
env:
48-
PHP_VERSION: "8.0-rc"
49-
DOCKER_NAME: debian
50-
run: bash ./.github/workflows/docker.sh
51-
alpine_php72:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v2
55-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
56-
env:
57-
PHP_VERSION: "7.2"
58-
DOCKER_NAME: alpine
59-
run: bash ./.github/workflows/docker.sh
60-
alpine_php73:
61-
runs-on: ubuntu-latest
62-
steps:
63-
- uses: actions/checkout@v2
64-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
65-
env:
66-
PHP_VERSION: "7.3"
67-
DOCKER_NAME: alpine
68-
run: bash ./.github/workflows/docker.sh
69-
alpine_php74:
70-
runs-on: ubuntu-latest
71-
steps:
72-
- uses: actions/checkout@v2
73-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
74-
env:
75-
PHP_VERSION: "7.4"
76-
DOCKER_NAME: alpine
77-
run: bash ./.github/workflows/docker.sh
78-
alpine_php80:
79-
runs-on: ubuntu-latest
80-
steps:
81-
- uses: actions/checkout@v2
82-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
83-
env:
84-
PHP_VERSION: "8.0-rc"
85-
DOCKER_NAME: alpine
86-
run: bash ./.github/workflows/docker.sh
87-
fedora_phpdefault:
88-
runs-on: ubuntu-latest
89-
steps:
90-
- uses: actions/checkout@v2
91-
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
92-
env:
93-
DOCKER_NAME: fedora
94-
TEST_PHP_EXECUTABLE: /usr/bin/php
95-
run: bash ./.github/workflows/docker.sh
14+
docker:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
PHP_VERSION:
20+
- "7.2"
21+
- "7.3"
22+
- "7.4"
23+
- "8.0-rc"
24+
DOCKER_NAME:
25+
- "alpine"
26+
- "debian"
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
30+
env:
31+
PHP_VERSION: ${{ matrix.PHP_VERSION }}
32+
DOCKER_NAME: ${{ matrix.DOCKER_NAME }}
33+
run: bash ./.github/scripts/docker.sh
34+
fedora:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v2
38+
- name: I am tired of writing this shit in YAML and learning a new DSL for every CI service so I am putting everything in a FSCKING BASH SCRIPT
39+
env:
40+
DOCKER_NAME: fedora
41+
TEST_PHP_EXECUTABLE: /usr/bin/php
42+
run: bash ./.github/scripts/docker.sh

0 commit comments

Comments
 (0)