Skip to content

Commit cf63c4e

Browse files
author
bweigel
committed
define includes option via command line & includes.yml
1 parent 0c566eb commit cf63c4e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/base/includes.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
default:
2+
- handler.py
3+
foobar:
4+
- handler.py
5+
- foobar
6+
empty: null

tests/base/serverless.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ custom:
2727
individually: false
2828
useStaticCache: false
2929
useDownloadCache: false
30-
include: [handler.py]
3130

3231
package:
3332
individually: ${opt:individually, self:custom.defaults.individually}
3433
exclude:
3534
- '**/*'
36-
include: ${opt:include, self:custom.defaults.include}
35+
include: $file(./includes.yml):${opt:include, 'default'}
3736

3837
functions:
3938
hello:

0 commit comments

Comments
 (0)