Browse Source

split build jobs

Shao Yu Lung 8 years ago
parent
commit
e8b49a9fe5
2 changed files with 146 additions and 5 deletions
  1. 145 4
      .travis.yml
  2. 1 1
      travis-build.sh

+ 145 - 4
.travis.yml

@@ -4,10 +4,151 @@ services:
   - docker
 
 env:
-  matrix:
-    - PHP_VERSION=56
-    - PHP_VERSION=70
-    - PHP_VERSION=71
+  matrix:  
+    - PHP_VERSION=56 BUILD_SERVICE=applications
+    - PHP_VERSION=70 BUILD_SERVICE=applications
+    - PHP_VERSION=71 BUILD_SERVICE=applications
+
+    - PHP_VERSION=56 BUILD_SERVICE=workspace
+    - PHP_VERSION=70 BUILD_SERVICE=workspace
+    - PHP_VERSION=71 BUILD_SERVICE=workspace
+
+    - PHP_VERSION=56 BUILD_SERVICE=php-fpm
+    - PHP_VERSION=70 BUILD_SERVICE=php-fpm
+    - PHP_VERSION=71 BUILD_SERVICE=php-fpm
+
+    - PHP_VERSION=56 BUILD_SERVICE=php-worker
+    - PHP_VERSION=70 BUILD_SERVICE=php-worker
+    - PHP_VERSION=71 BUILD_SERVICE=php-worker
+
+    - PHP_VERSION=56 BUILD_SERVICE=nginx
+    - PHP_VERSION=70 BUILD_SERVICE=nginx
+    - PHP_VERSION=71 BUILD_SERVICE=nginx
+
+    - PHP_VERSION=56 BUILD_SERVICE=blackfire
+    - PHP_VERSION=70 BUILD_SERVICE=blackfire
+    - PHP_VERSION=71 BUILD_SERVICE=blackfire
+
+    - PHP_VERSION=56 BUILD_SERVICE=apache2
+    - PHP_VERSION=70 BUILD_SERVICE=apache2
+    - PHP_VERSION=71 BUILD_SERVICE=apache2
+
+    - PHP_VERSION=56 BUILD_SERVICE=hhvm
+    - PHP_VERSION=70 BUILD_SERVICE=hhvm
+    - PHP_VERSION=71 BUILD_SERVICE=hhvm
+
+    - PHP_VERSION=56 BUILD_SERVICE=minio
+    - PHP_VERSION=70 BUILD_SERVICE=minio
+    - PHP_VERSION=71 BUILD_SERVICE=minio
+
+    - PHP_VERSION=56 BUILD_SERVICE=mysql
+    - PHP_VERSION=70 BUILD_SERVICE=mysql
+    - PHP_VERSION=71 BUILD_SERVICE=mysql
+
+    - PHP_VERSION=56 BUILD_SERVICE=percona
+    - PHP_VERSION=70 BUILD_SERVICE=percona
+    - PHP_VERSION=71 BUILD_SERVICE=percona
+
+    - PHP_VERSION=56 BUILD_SERVICE=mssql
+    - PHP_VERSION=70 BUILD_SERVICE=mssql
+    - PHP_VERSION=71 BUILD_SERVICE=mssql
+
+    - PHP_VERSION=56 BUILD_SERVICE=mariadb
+    - PHP_VERSION=70 BUILD_SERVICE=mariadb
+    - PHP_VERSION=71 BUILD_SERVICE=mariadb
+
+    - PHP_VERSION=56 BUILD_SERVICE=postgres
+    - PHP_VERSION=70 BUILD_SERVICE=postgres
+    - PHP_VERSION=71 BUILD_SERVICE=postgres
+
+    - PHP_VERSION=56 BUILD_SERVICE=postgres-postgis
+    - PHP_VERSION=70 BUILD_SERVICE=postgres-postgis
+    - PHP_VERSION=71 BUILD_SERVICE=postgres-postgis
+
+    - PHP_VERSION=56 BUILD_SERVICE=neo4j
+    - PHP_VERSION=70 BUILD_SERVICE=neo4j
+    - PHP_VERSION=71 BUILD_SERVICE=neo4j
+
+    - PHP_VERSION=56 BUILD_SERVICE=mongo
+    - PHP_VERSION=70 BUILD_SERVICE=mongo
+    - PHP_VERSION=71 BUILD_SERVICE=mongo
+
+    - PHP_VERSION=56 BUILD_SERVICE=rethinkdb
+    - PHP_VERSION=70 BUILD_SERVICE=rethinkdb
+    - PHP_VERSION=71 BUILD_SERVICE=rethinkdb
+
+    - PHP_VERSION=56 BUILD_SERVICE=redis
+    - PHP_VERSION=70 BUILD_SERVICE=redis
+    - PHP_VERSION=71 BUILD_SERVICE=redis
+
+    - PHP_VERSION=56 BUILD_SERVICE=aerospike
+    - PHP_VERSION=70 BUILD_SERVICE=aerospike
+    - PHP_VERSION=71 BUILD_SERVICE=aerospike
+
+    - PHP_VERSION=56 BUILD_SERVICE=memcached
+    - PHP_VERSION=70 BUILD_SERVICE=memcached
+    - PHP_VERSION=71 BUILD_SERVICE=memcached
+
+    - PHP_VERSION=56 BUILD_SERVICE=beanstalkd
+    - PHP_VERSION=70 BUILD_SERVICE=beanstalkd
+    - PHP_VERSION=71 BUILD_SERVICE=beanstalkd
+
+    - PHP_VERSION=56 BUILD_SERVICE=rabbitmq
+    - PHP_VERSION=70 BUILD_SERVICE=rabbitmq
+    - PHP_VERSION=71 BUILD_SERVICE=rabbitmq
+
+    - PHP_VERSION=56 BUILD_SERVICE=beanstalkd-console
+    - PHP_VERSION=70 BUILD_SERVICE=beanstalkd-console
+    - PHP_VERSION=71 BUILD_SERVICE=beanstalkd-console
+
+    - PHP_VERSION=56 BUILD_SERVICE=caddy
+    - PHP_VERSION=70 BUILD_SERVICE=caddy
+    - PHP_VERSION=71 BUILD_SERVICE=caddy
+
+    - PHP_VERSION=56 BUILD_SERVICE=phpmyadmin
+    - PHP_VERSION=70 BUILD_SERVICE=phpmyadmin
+    - PHP_VERSION=71 BUILD_SERVICE=phpmyadmin
+
+    - PHP_VERSION=56 BUILD_SERVICE=adminer
+    - PHP_VERSION=70 BUILD_SERVICE=adminer
+    - PHP_VERSION=71 BUILD_SERVICE=adminer
+
+    - PHP_VERSION=56 BUILD_SERVICE=pgadmin
+    - PHP_VERSION=70 BUILD_SERVICE=pgadmin
+    - PHP_VERSION=71 BUILD_SERVICE=pgadmin
+
+    - PHP_VERSION=56 BUILD_SERVICE=elasticsearch
+    - PHP_VERSION=70 BUILD_SERVICE=elasticsearch
+    - PHP_VERSION=71 BUILD_SERVICE=elasticsearch
+
+    - PHP_VERSION=56 BUILD_SERVICE=certbot
+    - PHP_VERSION=70 BUILD_SERVICE=certbot
+    - PHP_VERSION=71 BUILD_SERVICE=certbot
+
+    - PHP_VERSION=56 BUILD_SERVICE=mailhog
+    - PHP_VERSION=70 BUILD_SERVICE=mailhog
+    - PHP_VERSION=71 BUILD_SERVICE=mailhog
+
+    - PHP_VERSION=56 BUILD_SERVICE=selenium
+    - PHP_VERSION=70 BUILD_SERVICE=selenium
+    - PHP_VERSION=71 BUILD_SERVICE=selenium
+
+    - PHP_VERSION=56 BUILD_SERVICE=proxy
+    - PHP_VERSION=70 BUILD_SERVICE=proxy
+    - PHP_VERSION=71 BUILD_SERVICE=proxy
+
+    - PHP_VERSION=56 BUILD_SERVICE=proxy2
+    - PHP_VERSION=70 BUILD_SERVICE=proxy2
+    - PHP_VERSION=71 BUILD_SERVICE=proxy2
+
+    - PHP_VERSION=56 BUILD_SERVICE=balancer
+    - PHP_VERSION=70 BUILD_SERVICE=balancer
+    - PHP_VERSION=71 BUILD_SERVICE=balancer
+
+    - PHP_VERSION=56 BUILD_SERVICE=jenkins
+    - PHP_VERSION=70 BUILD_SERVICE=jenkins
+    - PHP_VERSION=71 BUILD_SERVICE=jenkins
+
     - HUGO_VERSION=0.20.2
 
 # Installing a newer Docker version

+ 1 - 1
travis-build.sh

@@ -15,7 +15,7 @@ if [ -n "${PHP_VERSION}" ]; then
     sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env
     sed -i -- 's/=false/=true/g' .env
     cat .env
-    docker-compose build
+    docker-compose build ${BUILD_SERVICE}
     docker images
 fi