mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-30 16:13:52 +00:00
Restructure travis file
This commit is contained in:
parent
bd05fae22f
commit
34652dc563
27
.travis.yml
27
.travis.yml
@ -23,25 +23,14 @@ env:
|
|||||||
### Berfore Install
|
### Berfore Install
|
||||||
###
|
###
|
||||||
before_install:
|
before_install:
|
||||||
- echo "Before install"
|
# List versions
|
||||||
|
- docker version
|
||||||
|
- docker-compose version
|
||||||
|
|
||||||
###
|
###
|
||||||
### Install
|
### Install
|
||||||
###
|
###
|
||||||
install:
|
install:
|
||||||
# List versions
|
|
||||||
- docker version
|
|
||||||
- docker-compose version
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
###
|
|
||||||
### Test
|
|
||||||
###
|
|
||||||
script:
|
|
||||||
################################################################################
|
|
||||||
# Pull dockers (will move to install/before_install)
|
|
||||||
################################################################################
|
|
||||||
# php
|
# php
|
||||||
- docker pull cytopia/php-fpm-5.4:${DEVILBOX_PHP_VERSION}
|
- docker pull cytopia/php-fpm-5.4:${DEVILBOX_PHP_VERSION}
|
||||||
- docker pull cytopia/php-fpm-5.5:${DEVILBOX_PHP_VERSION}
|
- docker pull cytopia/php-fpm-5.5:${DEVILBOX_PHP_VERSION}
|
||||||
@ -61,7 +50,6 @@ script:
|
|||||||
- docker pull cytopia/mariadb-10.0:${DEVILBOX_MYSQL_VERSION}
|
- docker pull cytopia/mariadb-10.0:${DEVILBOX_MYSQL_VERSION}
|
||||||
- docker pull cytopia/mariadb-10.1:${DEVILBOX_MYSQL_VERSION}
|
- docker pull cytopia/mariadb-10.1:${DEVILBOX_MYSQL_VERSION}
|
||||||
- docker pull cytopia/mariadb-10.2:${DEVILBOX_MYSQL_VERSION}
|
- docker pull cytopia/mariadb-10.2:${DEVILBOX_MYSQL_VERSION}
|
||||||
|
|
||||||
# postgresql (official images)
|
# postgresql (official images)
|
||||||
- docker pull postgres:9.2
|
- docker pull postgres:9.2
|
||||||
- docker pull postgres:9.3
|
- docker pull postgres:9.3
|
||||||
@ -70,9 +58,18 @@ script:
|
|||||||
- docker pull postgres:9.6
|
- docker pull postgres:9.6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
### Test
|
||||||
|
###
|
||||||
|
script:
|
||||||
- cp env-example .env
|
- cp env-example .env
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- sleep 30
|
- sleep 30
|
||||||
- docker-compose ps
|
- docker-compose ps
|
||||||
|
- if [ "$( docker-compose ps | grep -c 'Up' )" != "4" ]; then false; fi
|
||||||
|
|
||||||
|
- UP=$( docker-compose ps | grep -c 'Up' )
|
||||||
|
- if [ "${UP}" != "4" ]; then false; fi
|
||||||
- docker-compose logs
|
- docker-compose logs
|
||||||
- wget http://localhost
|
- wget http://localhost
|
Loading…
x
Reference in New Issue
Block a user