Skip to content

Commit 85abe59

Browse files
chore(ci) add php cli 7 (Kong#150)
* chore(travis) php 5 to 7 * chore(docker) add docker env
1 parent c780dad commit 85abe59

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ node_js:
77

88
before_install:
99
- sudo apt-get update -qq
10-
- sudo apt-get install -qq --yes python3 php5-curl php5-cli
10+
- sudo apt-get install -qq php7.0 php7.0-curl php7.0-cli
1111

1212
after_script:
1313
- npm run codeclimate

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# specify the node base image with your desired version node:<version>
2+
FROM node:8
3+
4+
ADD . /src
5+
WORKDIR /src
6+
7+
RUN apt-get update -qq
8+
RUN apt-get install -qq php7.0 php7.0-curl php7.0-cli
9+
RUN apt-get install -qq --yes python3

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: '3'
2+
services:
3+
httpsnippet:
4+
build: .
5+
command: [npm, test]

0 commit comments

Comments
 (0)