Skip to content

Commit 34c6ef9

Browse files
committed
Add .gitattributes, CircleCI and prepare 2.1.0
1 parent 2c05e23 commit 34c6ef9

File tree

3 files changed

+117
-2
lines changed

3 files changed

+117
-2
lines changed

.circleci/config.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
version: '2.1'
2+
3+
jobs:
4+
phpunitPhp54:
5+
docker:
6+
-
7+
image: steevanb/php-backtrace-ci:php54
8+
working_directory: /app
9+
steps:
10+
- checkout
11+
-
12+
run:
13+
name: phpunit
14+
command: bin/ci/phpunitPhp54
15+
16+
phpunitPhp55:
17+
docker:
18+
- image: steevanb/php-backtrace-ci:php55
19+
working_directory: /app
20+
steps:
21+
- checkout
22+
- run:
23+
name: phpunit
24+
command: bin/ci/phpunitPhp55
25+
26+
phpunitPhp56:
27+
docker:
28+
- image: steevanb/php-backtrace-ci:php56
29+
working_directory: /app
30+
steps:
31+
- checkout
32+
- run:
33+
name: phpunit
34+
command: bin/ci/phpunitPhp56
35+
36+
phpunitPhp70:
37+
docker:
38+
- image: steevanb/php-backtrace-ci:php70
39+
working_directory: /app
40+
steps:
41+
- checkout
42+
- run:
43+
name: phpunit
44+
command: bin/ci/phpunitPhp70
45+
46+
phpunitPhp71:
47+
docker:
48+
- image: steevanb/php-backtrace-ci:php71
49+
working_directory: /app
50+
steps:
51+
- checkout
52+
- run:
53+
name: phpunit
54+
command: bin/ci/phpunitPhp71
55+
56+
phpunitPhp72:
57+
docker:
58+
- image: steevanb/php-backtrace-ci:php72
59+
working_directory: /app
60+
steps:
61+
- checkout
62+
- run:
63+
name: phpunit
64+
command: bin/ci/phpunitPhp72
65+
66+
phpunitPhp73:
67+
docker:
68+
- image: steevanb/php-backtrace-ci:php73
69+
working_directory: /app
70+
steps:
71+
- checkout
72+
- run:
73+
name: phpunit
74+
command: bin/ci/phpunitPhp73
75+
76+
phpunitPhp74:
77+
docker:
78+
- image: steevanb/php-backtrace-ci:php74
79+
working_directory: /app
80+
steps:
81+
- checkout
82+
- run:
83+
name: phpunit
84+
command: bin/ci/phpunitPhp74
85+
86+
phpunitPhp80:
87+
docker:
88+
- image: steevanb/php-backtrace-ci:php80
89+
working_directory: /app
90+
steps:
91+
- checkout
92+
- run:
93+
name: phpunit
94+
command: bin/ci/phpunitPhp80
95+
96+
workflows:
97+
CI:
98+
jobs:
99+
- phpunitPhp54
100+
- phpunitPhp55
101+
- phpunitPhp56
102+
- phpunitPhp70
103+
- phpunitPhp71
104+
- phpunitPhp72
105+
- phpunitPhp73
106+
- phpunitPhp74
107+
- phpunitPhp80

bin/ci/phpunit.inc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -z "${PHP_SHORT_VERSION:-}" ]; then
88
fi
99

1010
if [ $(which docker || false) ]; then
11-
readonly DOCKER_IMAGE_NAME="steevanb/php-typed-array-ci-php${PHP_SHORT_VERSION}:latest"
11+
readonly DOCKER_IMAGE_NAME="steevanb/php-backtrace-ci:php${PHP_SHORT_VERSION}"
1212

1313
if [ -z "${ROOT_DIR:-}" ]; then
1414
echo "Variable ROOT_DIR should be defined."

bin/docker

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source "${rootDir}/bin/common.inc.sh"
77

88
function buildDockerImage() {
99
local localPhpVersion="${1}"
10-
local localDockerImageName="steevanb/php-typed-array-ci-php${localPhpVersion}:latest"
10+
local localDockerImageName="steevanb/php-backtrace-ci:php${localPhpVersion}"
1111
if [ ${refresh} == true ]; then
1212
local localRefreshArguments="--no-cache"
1313
else
@@ -21,12 +21,20 @@ function buildDockerImage() {
2121
"${rootDir}/docker/php${localPhpVersion}" \
2222
${localRefreshArguments} \
2323
--tag "${localDockerImageName}"
24+
25+
if [ ${push} == true ]; then
26+
title "Push Docker image ${localDockerImageName}"
27+
docker push "${localDockerImageName}"
28+
fi
2429
}
2530

2631
refresh=false
32+
push=false
2733
for param in "$@"; do
2834
if [ "${param}" == "--refresh" ]; then
2935
refresh=true
36+
elif [ "${param}" == "--push" ]; then
37+
push=true
3038
fi
3139
done
3240

0 commit comments

Comments
 (0)