Setup travis config and credential script

This commit is contained in:
mitchelljfs 2018-07-16 00:44:56 -07:00
parent f38e67281b
commit 89076b4ccf
2 changed files with 23 additions and 0 deletions

16
.travis.yml Normal file
View File

@ -0,0 +1,16 @@
language: node_js
node_js:
- "10"
before_install:
- "sh ./travis_credential_setup.sh"
install:
- "npm install"
- "pip install awscli --user"
script:
- "npm run build"
- "aws s3 sync ./build/ s3://mjfsus --acl public-read"
- "aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths /*"

View File

@ -0,0 +1,7 @@
mkdir -p ~/.aws
cat > ~/.aws/credentials << EOL
[default]
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
EOL