.drone.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. services:
  2. selenium:
  3. image: selenium/standalone-firefox-debug:3.1
  4. docker:
  5. image: docker:17.10-dind
  6. command: [ "--storage-driver=vfs", "--tls=false" ]
  7. pipeline:
  8. #build:
  9. # image: debian:9.0
  10. # commands:
  11. # - echo "Acquire::http::Proxy \"http://200.50.168.30:3142\";" | tee /etc/apt/apt.conf.d/00aptproxy
  12. # - apt-get update && apt-get install -yq git curl imagemagick php-cli php-curl php-mbstring php-imagick php-xml
  13. # - which compare
  14. # - env
  15. # - pwd
  16. # - ls -lash
  17. # - cd behat/testScreenshotGalvez ; php ./vendor/bin/codecept run --steps tests/acceptance/
  18. install:
  19. image: docker.infra.flowdat.com/fd3/sf-php:latest
  20. environment:
  21. - DOCKER_HOST=tcp://0.0.0.0:2375
  22. commands:
  23. - apt-get update && apt-get install -yq php-gmp
  24. - apt-get update && apt-get install -yq lsb-release
  25. - . /etc/os-release; echo $ID
  26. - lsb_release -cs
  27. - env
  28. - php -v
  29. - apt-get update && apt-get install -yq apt-transport-https ca-certificates curl gnupg2 software-properties-common
  30. - curl -fsSL https://download.docker.com/linux/$ID/gpg | apt-key add -
  31. - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$ID $(lsb_release -cs) stable"
  32. - apt-get update && apt-cache madison docker-ce
  33. - apt-get update && apt-get -yq install docker-ce=17.06.0~ce-0~debian
  34. - apt-get update && apt-get install -yq python-pip
  35. - docker --tls=false ps -a
  36. - pip install docker-compose
  37. - docker-compose -v
  38. - echo "Hasta aqui es instalación de paquetes requeridos docker y docker-compose"
  39. - cd tools
  40. - eval $(ssh-agent) ; ssh-add keys/bitbucket.id_rsa
  41. - composer install -n
  42. - rm -rf demo
  43. - php cmd.php make:install demo
  44. - cd demo
  45. - php ../cmd.php get:source git.ini
  46. - docker-compose up -d