image: python:3.5.7

pipelines:
  branches:
    master:
      - step:
          script:
            - apt-get update # required to install zip
            - apt-get install -y zip # required for packaging up the application
            - pip install boto3==1.3.0 # required for beanstalk_deploy.py
            - zip -r /tmp/artifact.zip wordpress/* # package up the application for deployment
            - python beanstalk_deploy.py # run the deployment script
            
    Dev:
     - step:
        script:
                    - apt-get update # required to install zip
                    - apt-get install -y zip # required for packaging up the application
                    - pip install boto3==1.3.0 # required for beanstalk_deploy.py
                    - zip -j /tmp/artifact.zip Dev/* # package up the application for deployment
                    - python beanstalk_deploy.py # run the deployment script
          
            
