Skip to content

Commit bdbda96

Browse files
Add WP version 5.7 to test suite.
1 parent b78b9cb commit bdbda96

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ matrix:
1313
- dist: precise
1414
php: 5.3
1515
script: bin/unit-tests
16+
- dist: trusty
17+
php: 7.3
18+
env: WORDPRESS_VERSION=57 INTEGRATION_TESTS=true
19+
script: bin/integration-tests
1620
- dist: trusty
1721
php: 7.3
1822
env: WORDPRESS_VERSION=56 INTEGRATION_TESTS=true

config/Dockerfile-wordpress-57

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM wordpress:5-php7.3
2+
3+
ENV WORDPRESS_VERSION 5.7
4+
ENV WORDPRESS_UPSTREAM_VERSION 5.7-RC3
5+
ENV WORDPRESS_SHA1 511ff9826981ce2624c3c3c53aa75c7129d22c41
6+
7+
# upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
8+
RUN curl -o wordpress.tar.gz -sSL https://wordpress.org/wordpress-${WORDPRESS_UPSTREAM_VERSION}.tar.gz \
9+
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
10+
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
11+
&& rm wordpress.tar.gz \
12+
&& mkdir /usr/src/wordpress/wp-content/uploads \
13+
&& chown -R www-data:www-data /usr/src/wordpress
14+
15+
ENTRYPOINT ["docker-entrypoint.sh"]
16+
CMD ["apache2-foreground"]

0 commit comments

Comments
 (0)