Merge pull request #2759 from serverless/skip-travis-builds-on-md-changes

Skip Travis builds on .md changes
This commit is contained in:
Nik Graf 2016-11-21 18:12:49 +01:00 committed by GitHub
commit e9d404da43
2 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,16 @@ matrix:
- LINTING=true
sudo: false
before_install:
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs))/' || {
echo "No code was updated. Stopping build process."
exit
}
install:
- travis_retry npm install

View File

@ -98,6 +98,7 @@ functions:
memorySize: 512 # function specific
```
## Permissions
Every AWS Lambda function needs permission to interact with other AWS infrastructure resources within your account. These permissions are set via an AWS IAM Role. You can set permission policy statements within this role via the `provider.iamRoleStatements` property.