Precondition
– an account of GitHub
– a repository in GitHub
– an account of Travis CI
– Travis CI CLI installed (gem install travis)
– AWS account
– making an access ID and Secret Key with updated authority of S3 with IAM
– hosting buckets of S3 as static site
Create IAM User

GitHub

As an access key and a secret key are to be replaced later, is it OK?
language: php
php:
- 5.5
script: echo "do nothing"
deploy:
provider: s3
access_key_id:
secure: "accesskey id"
secret_access_key:
secure: "secret access key"
bucket: travisci-s3
region: ap-northeast-1
endpoint: s3.amazonaws.com
on:
branch: master