Skip to content

Commit f27a5ea

Browse files
Merge pull request IBM#7 from AnthonyAmanse/add-ci
Add initial Travis CI
2 parents 7dbb43d + 6591c30 commit f27a5ea

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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."

manifest.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# CLOUDANT_USERNAME
1515
# CLOUDANT_PASSWORD
1616
# WATSON_VISUAL_APIKEY
17-
17+
---
1818
packages:
1919
serverless-image-recognition:
2020
dependencies:
@@ -26,8 +26,8 @@ packages:
2626
password: $CLOUDANT_PASSWORD
2727
host: ${CLOUDANT_USERNAME}.cloudant.com
2828
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
3131
update-document-with-watson:
3232
function: actions/updateDocumentWithWatson.js
3333
runtime: nodejs:8
@@ -38,14 +38,14 @@ packages:
3838
DBNAME_PROCESSED: $CLOUDANT_TAGS_DATABASE
3939
WATSON_VR_APIKEY: $WATSON_VISUAL_APIKEY
4040
triggers:
41-
# Creating the update-trigger trigger"
41+
# Creating the update-trigger trigger"
4242
update-trigger:
4343
feed: serverless-pattern-cloudant-package/changes
4444
inputs:
4545
dbname: $CLOUDANT_IMAGE_DATABASE
4646
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
4949
update-trigger-rule:
5050
trigger: update-trigger
5151
action: update-document-with-watson

0 commit comments

Comments
 (0)