php_helper improve for dev/test
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -20,6 +20,25 @@ steps:
 | 
			
		||||
      - master
 | 
			
		||||
  depends_on: [ clone ]
 | 
			
		||||
 | 
			
		||||
- name: php7.4-dev
 | 
			
		||||
  image: plugins/docker
 | 
			
		||||
  pull: if-not-exists
 | 
			
		||||
  settings:
 | 
			
		||||
    username: 
 | 
			
		||||
      from_secret: hub_username
 | 
			
		||||
    password: 
 | 
			
		||||
      from_secret: hub_password
 | 
			
		||||
    repo: 
 | 
			
		||||
      from_secret: hub_repo
 | 
			
		||||
    build_args:
 | 
			
		||||
      - PHP_VERSION=7.4-fpm-alpine3.13
 | 
			
		||||
      - ENVIRONMENT=development
 | 
			
		||||
    tags: 7.4-alpine-dev
 | 
			
		||||
  when: 
 | 
			
		||||
    branch:
 | 
			
		||||
      - master
 | 
			
		||||
  depends_on: [ clone ]
 | 
			
		||||
 | 
			
		||||
- name: php7.3
 | 
			
		||||
  image: plugins/docker
 | 
			
		||||
  pull: if-not-exists
 | 
			
		||||
@@ -68,7 +87,7 @@ steps:
 | 
			
		||||
      from_secret: hub_repo
 | 
			
		||||
    build_args:
 | 
			
		||||
      - PHP_VERSION=7.3-fpm-alpine3.12
 | 
			
		||||
      - ENVIRONMENT=dev
 | 
			
		||||
      - ENVIRONMENT=development
 | 
			
		||||
    tags: 7.3-alpine-dev
 | 
			
		||||
  when: 
 | 
			
		||||
    branch:
 | 
			
		||||
 
 | 
			
		||||
@@ -102,10 +102,6 @@ RUN /usr/local/bin/php_helper.sh
 | 
			
		||||
RUN wget -O /bin/cachetool http://gordalina.github.io/cachetool/downloads/cachetool.phar
 | 
			
		||||
RUN chmod a+x /bin/cachetool
 | 
			
		||||
 | 
			
		||||
#install phpunit
 | 
			
		||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-9.phar 
 | 
			
		||||
RUN install phpunit /usr/local/bin
 | 
			
		||||
 | 
			
		||||
# Create directories
 | 
			
		||||
RUN mkdir -p /var/www
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -22,9 +22,14 @@ if [ $PHP_VERSION = '72' ]; then
 | 
			
		||||
	composer global require hirak/prestissimo
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ $ENVIRONMENT != 'production' ]; then
 | 
			
		||||
	wget -O phpunit https://phar.phpunit.de/phpunit-9.phar 
 | 
			
		||||
	install phpunit /usr/local/bin
 | 
			
		||||
fi 
 | 
			
		||||
 | 
			
		||||
if [ $ENVIRONMENT = 'development' ]; then
 | 
			
		||||
	apk --update --no-cache add autoconf g++ make
 | 
			
		||||
	pecl install -f xdebug
 | 
			
		||||
	docker-php-ext-enable xdebug
 | 
			
		||||
	apk del --purge autoconf g++ make
 | 
			
		||||
fi 
 | 
			
		||||
fi 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user