mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #2759 from serverless/skip-travis-builds-on-md-changes
Skip Travis builds on .md changes
This commit is contained in:
commit
e9d404da43
10
.travis.yml
10
.travis.yml
@ -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
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user