Skip to content

Commit e69ace1

Browse files
authored
CI tests to github actions (#63)
* Add ci.yml with run docker compose * Change test screenshot files * Remove travis CI
1 parent 7141201 commit e69ace1

File tree

5 files changed

+20
-33
lines changed

5 files changed

+20
-33
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "CI"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v1
11+
12+
- name: Run tests on docker compose
13+
run: docker-compose up --abort-on-container-exit

.travis.yml

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

docker/php.docker

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1-
FROM php:7.1-cli-alpine
1+
FROM php:7.1
22

3-
RUN apk add --update --no-cache \
4-
bash \
5-
wget \
6-
curl \
7-
php7-imagick \
8-
libzip-dev \
9-
autoconf \
10-
g++ \
11-
imagemagick-dev \
12-
libtool \
13-
make \
14-
pcre-dev
3+
RUN apt-get update && apt-get install -y libzip-dev libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
154

16-
# imagick
17-
RUN pecl install imagick \
18-
&& docker-php-ext-enable imagick \
19-
&& docker-php-ext-configure zip --with-libzip=/usr/include \
20-
&& docker-php-ext-install zip \
21-
&& apk del autoconf g++ libtool make pcre-dev
5+
RUN printf "\n" | pecl install imagick
6+
RUN docker-php-ext-enable imagick
7+
8+
RUN docker-php-ext-configure zip --with-libzip=/usr/include \
9+
&& docker-php-ext-install zip
2210

2311
# composer
2412
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
Loading

0 commit comments

Comments
 (0)