Guillermo Espinoza 8 anni fa
parent
commit
1aadc5357b
1 ha cambiato i file con 12 aggiunte e 3 eliminazioni
  1. 12 3
      .drone.yml

+ 12 - 3
.drone.yml

@@ -8,8 +8,17 @@ pipeline:
   build:
     image: debian:8.0
     commands:
-      - echo 'Acquire::http { Proxy "http://200.50.168.30:3142"; };' > /etc/apt/apt.conf.d/01proxy     
-      - apt-get update && apt-get install -yq build-essential git unzip php5-cli php5-mysql wget mysql-client php5-curl
+      - echo 'Acquire::http { Proxy "http://200.50.168.30:3142"; };' > /etc/apt/apt.conf.d/01proxy  
+      
+      - apt-get update && apt-get install -yq build-essential git unzip wget
+      
+      - echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
+      - echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
+      - wget https://www.dotdeb.org/dotdeb.gpg
+      - apt-key add dotdeb.gpg
+      - rm dotdeb.gpg
+      - apt-get update 
+      - apt-get install -yq php7.0-cli php7.0-mysql mysql-client php7.0-curl php7.0-xml php7.0-bcmath php7.0-mbstring
       
       # RabbitMQ apt repository
       - echo 'deb http://www.rabbitmq.com/debian/ testing main' | tee /etc/apt/sources.list.d/rabbitmq.list
@@ -23,7 +32,7 @@ pipeline:
       - php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer
       - php -r "unlink('composer-setup.php');"
       - echo 'client = Flowdat3-FTTH-Drone-Test' | tee /etc/flowdat.conf
-      - echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php5/cli/php.ini
+      - echo 'date.timezone="America/Argentina/Buenos_Aires"' >> /etc/php/7.0/cli/php.ini
       - yes | mysqladmin -h 127.0.0.1 create flowdat_ftth
       - mkdir -p /root/.ssh/
       - ssh-keyscan -p222 200.50.168.30 >> ~/.ssh/known_hosts