-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): make sure we can build the example rockcraft.yaml
Put the example code in a spread test, to ensure that we can always build the example we give in the docs. Fixes #399
- Loading branch information
Showing
5 changed files
with
46 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: hello | ||
title: Hello World | ||
summary: An Hello World ROCK | ||
description: | | ||
This is just an example of a Rockcraft project | ||
for a Hello World ROCK. | ||
version: latest | ||
base: bare | ||
build-base: [email protected] | ||
license: Apache-2.0 | ||
run-user: _daemon_ | ||
environment: | ||
FOO: bar | ||
services: | ||
hello: | ||
override: replace | ||
command: /usr/bin/hello -t | ||
environment: | ||
VAR1: value | ||
VAR2: "other value" | ||
platforms: | ||
amd64: | ||
armhf: | ||
build-on: ["armhf", "arm64"] | ||
ibm: | ||
build-on: ["s390x"] | ||
build-for: s390x | ||
parts: | ||
hello: | ||
plugin: nil | ||
stage-packages: | ||
- hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
summary: Check that we can build the example rockcraft.yaml | ||
|
||
execute: | | ||
rockcraft pack | ||
restore: | | ||
rm -f ./*.rock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,41 +223,8 @@ The set of parts that compose the ROCK's contents | |
Example | ||
======= | ||
|
||
.. code-block:: yaml | ||
name: hello | ||
title: Hello World | ||
summary: An Hello World ROCK | ||
description: | | ||
This is just an example of a Rockcraft project | ||
for a Hello World ROCK. | ||
version: latest | ||
base: bare | ||
build-base: [email protected] | ||
license: Apache-2.0 | ||
run-user: _daemon_ | ||
environment: | ||
FOO: bar | ||
services: | ||
hello: | ||
override: replace | ||
command: /usr/bin/hello -t | ||
environment: | ||
VAR1: value | ||
VAR2: "other value" | ||
platforms: | ||
amd64: | ||
arm: | ||
build-on: ["arm", "arm64"] | ||
ibm: | ||
build-on: ["s390x"] | ||
build-for: s390x | ||
parts: | ||
hello: | ||
plugin: nil | ||
stage-packages: | ||
- hello | ||
.. literalinclude:: code/example/rockcraft.yaml | ||
:language: yaml | ||
|
||
|
||
.. _`Pebble Layer Specification format`: https://github.com/canonical/pebble#layer-specification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
summary: donejs tutorial | ||
summary: nodejs tutorial | ||
|
||
execute: | | ||
# [docs:install-rockcraft] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters