Below is my .travis.yml, I'm using grunt to compile my sass, and minimize js and images which seem to work fine, however none of those files get deployed to Elastic Beanstalk. I added skip_cleanup: true
which according to the docs should fix this issue but to no avail.
language: php
before_install:
- nvm install 0.10.38
- npm set progress=false
- npm install -g grunt-cli grunt grunt-bower -loglevel=error
- gem install dpl
script:
- echo "success"
before_deploy:
- cd ${TRAVIS_BUILD_DIR}/wp-content/themes/myapp && npm install --loglevel=error
- cd ${TRAVIS_BUILD_DIR}/wp-content/themes/myapp && grunt build
- cd ${TRAVIS_BUILD_DIR}
- ls ${TRAVIS_BUILD_DIR}/wp-content/themes/myapp
env:
- ELASTIC_BEANSTALK_LABEL=$TRAVIS_COMMIT
deploy:
skip_cleanup: true
provider: elasticbeanstalk
region: us-east-1
app: App
env: app-staging
bucket-name: elasticbeanstalk-us-east-1-AAAAAAAA123
access_key_id: ${STAGING_AWS_ACCESS_KEY_ID}
secret_access_key: ${STAGING_AWS_SECRET_KEY}
on:
branch: staging