version: 0.2

phases:
  install:
    commands:
      - echo "Nothing to install."
  build:
    commands:
      - echo Build started on `date`
      - cd lambda
      - python ../zip.py ../Count_Intent.zip count_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Top_Intent.zip top_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Compare_Intent.zip compare_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Refresh_Intent.zip refresh_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Reset_Intent.zip reset_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Hello_Intent.zip hello_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Goodbye_Intent.zip goodbye_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py
      - python ../zip.py ../Switch_Intent.zip switch_intent.py bibot_config.py bibot_helpers.py bibot_userexits.py count_intent.py top_intent.py
      - cd ..
      - ls -l *.zip
      - bash delete.sh
      - bash build-db.sh
      - bash build-bot.sh
  post_build:
    commands:
      - echo Build completed on `date`

