Permalink
Showing
with
16 additions
and 82 deletions.
| @@ -1,90 +1,17 @@ | ||
| -id: snapcraft/examples/downloader-with-wiki-parts | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/downloader-with-wiki-parts | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/gopaste | ||
| -plugin: shell | ||
| +id: snapcraft/examples/template | ||
| +plugin: resource | ||
| command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/gopaste | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/java-hello-world | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/java-hello-world | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/libpipeline | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/libpipeline | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/py2project | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/py2-project | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/py3project | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/py3-project | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/qmldemo | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - test ! "$(lsb_release -cs)" = "trusty" || exit 0 | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/qmldemo | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/ros | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/ros | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| - | ||
| -id: snapcraft/examples/tomcat-maven-webapp | ||
| -plugin: shell | ||
| -command: | ||
| - set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/tomcat-maven-webapp | ||
| - cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| - cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| - rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| + for example in $(ls ${PLAINBOX_PROVIDER_DATA}/examples); do | ||
| + echo "name: $example\n\n" | ||
| -id: snapcraft/examples/webcam-webui | ||
| +id: snapcraft/examples/{name} | ||
| +unit: template | ||
| +template-unit: job | ||
| +template-resource: snapcraft/examples/template | ||
|
|
||
| plugin: shell | ||
| command: | ||
| set -e | ||
| - example=${PLAINBOX_PROVIDER_DATA}/examples/webcam-webui | ||
| + example=${PLAINBOX_PROVIDER_DATA}/examples/{name} | ||
| cp -rT ${example//:} ${PLAINBOX_SESSION_SHARE} | ||
| cd ${PLAINBOX_SESSION_SHARE} && ${SNAPCRAFT} | ||
| rm -rf ${PLAINBOX_SESSION_SHARE}/* | ||
| @@ -3,7 +3,14 @@ id: normal | ||
| _name: Tests for Snapcraft | ||
| include: snapcraft/normal/.* | ||
| +id: snapcraft/examples/template | ||
zyga
|
||
| +plugin: resource | ||
| +command: | ||
| + for example in $(ls ${PLAINBOX_PROVIDER_DATA}/examples); do | ||
| + echo "name: $example\n\n" | ||
| + | ||
| unit: test plan | ||
| id: examples | ||
| name: Test for building Snapcraft examples | ||
| include: snapcraft/examples/.* | ||
zyga
|
||
| +bootstrap_jobs: snapcraft/examples/template | ||
Wait, this seems to clash with the same resource job below? Is that just github diff formatting?