File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ dist : trusty
3
+ cache : pip
4
+ sudo : required
5
+
6
+ before_install :
7
+ - sudo apt-get install shellcheck
8
+ - sudo pip install yamllint
9
+ - git clone https://github.com/IBM/pattern-ci
10
+
11
+ before_script :
12
+ - " ./pattern-ci/tests/shellcheck-lint.sh"
13
+ - " ./pattern-ci/tests/yaml-lint.sh"
14
+
15
+ jobs :
16
+ include :
17
+ - script : echo "Lints passed."
Original file line number Diff line number Diff line change 14
14
# CLOUDANT_USERNAME
15
15
# CLOUDANT_PASSWORD
16
16
# WATSON_VISUAL_APIKEY
17
-
17
+ ---
18
18
packages :
19
19
serverless-image-recognition :
20
20
dependencies :
@@ -26,8 +26,8 @@ packages:
26
26
password : $CLOUDANT_PASSWORD
27
27
host : ${CLOUDANT_USERNAME}.cloudant.com
28
28
actions :
29
- # Action named "update-document-with-watson"
30
- # Creating action as a regular Node.js action
29
+ # Action named "update-document-with-watson"
30
+ # Creating action as a regular Node.js action
31
31
update-document-with-watson :
32
32
function : actions/updateDocumentWithWatson.js
33
33
runtime : nodejs:8
@@ -38,14 +38,14 @@ packages:
38
38
DBNAME_PROCESSED : $CLOUDANT_TAGS_DATABASE
39
39
WATSON_VR_APIKEY : $WATSON_VISUAL_APIKEY
40
40
triggers :
41
- # Creating the update-trigger trigger"
41
+ # Creating the update-trigger trigger"
42
42
update-trigger :
43
43
feed : serverless-pattern-cloudant-package/changes
44
44
inputs :
45
45
dbname : $CLOUDANT_IMAGE_DATABASE
46
46
rules :
47
- # Rule named "update-trigger-rule"
48
- # Creating the rule that links the trigger to the sequence
47
+ # Rule named "update-trigger-rule"
48
+ # Creating the rule that links the trigger to the sequence
49
49
update-trigger-rule :
50
50
trigger : update-trigger
51
51
action : update-document-with-watson
You can’t perform that action at this time.
0 commit comments