# README
Integration Test - Dependencies
wskdeploy
supports dependencies where it allows you to declare other OpenWhisk
packages that your application or project (manifest) is dependent on. With declaring
dependent packages, wskdeploy
supports automatic deployment of those dependent
packages.
For example, our root-app
application is dependent on child-app
package located
at https://github.com/apache/child-app.
We can declare this dependency in manifest.yaml
with:
packages:
root-app:
namespace: guest
dependencies:
child-app:
location: github.com/apache/child-app
triggers:
trigger1:
rules:
rule1:
trigger: trigger1
action: child-app/hello
Note:
- Package name of the dependent package
child-app
should match GitHub repo namegithub.com/apache/child-app
. wskdeploy
creates a directory namedPackages
and clones GitHub repo of dependent package underPackages
. Now the repo is cloned and renamed to<package>-<branch>
. Here in our example,wskdeploy
clones repo underPackages
and renames it tochild-app-master
.- Dependent packages must have
manifest.yml
.