-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
30 lines (24 loc) · 864 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
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
DOCKER_COMPOSE_VERSION: 1.8.1
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- sudo mv docker-compose /usr/local/bin
- chmod +x /usr/local/bin/docker-compose
- docker --version
- docker build -q -t vfac/envdevphpbase:8.0-fpm .
- docker run --name php8.0 -d -v $PWD:/var/www/html vfac/envdevphpbase:8.0-fpm
- docker-compose -f test/8.0/docker-compose.yml up -d
script:
- docker exec php8.0 php -v
- docker exec php8.0 sh -c "php -v | grep 8.0"
- docker exec php8.0 sh -c "php test/test.php |grep version"
- docker exec php8.0 composer --version
- curl -s localhost:8072/test.php |grep bcmath