forked from PrestaShop/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 985 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: bash
services: docker
env:
- VERSION=1.4.11.1
BASE=5.6-apache
- VERSION=1.5.6.3
BASE=5.6-apache
- VERSION=1.6.1.24
BASE=7.0-apache
- VERSION=1.7.6.2
BASE=apache
- VERSION=1.7-5.6-apache
BASE=5.6-apache
- VERSION=1.5-7.2-apache
BASE=7.2-apache
- VERSION=1.7-5.6-fpm
BASE=5.6-fpm
- VERSION=1.5-7.2-fpm
BASE=7.2-fpm
- VERSION=nightly-7.1-apache
BASE=7.1-apache
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- image="prestashop/prestashop:${VERSION}"
- image="${image//'/'/-}"
script:
- docker build -t "prestashop/base:$BASE" base/images/$BASE
- docker tag prestashop/base:$BASE prestashop/base:5.6-apache
- docker build -t "$image" images/$VERSION
- ~/official-images/test/run.sh "$image"
- docker run -tid --name prestashop $image && docker exec -ti prestashop cat /var/www/html/index.php
after_script:
- docker images