-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/1783840/rub…
…y_plugin_spread Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
- Loading branch information
Showing
27 changed files
with
145 additions
and
193 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
tests/spread/plugins/godeps/run-with-go-packages/task.yaml
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,27 @@ | ||
summary: Build and run a Godeps snap using go-packages | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/godeps-with-go-packages | ||
GOBIN/gobin: gobin | ||
GOBIN/no_gobin: | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
if [ -z "$GOBIN" ]; then | ||
unset GOBIN | ||
fi | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install godeps-with-go-packages_*.snap --dangerous | ||
# Verify that bcrypt was not built | ||
[ ! -e "prime/bin/bcrypt" ] | ||
hash="$(godeps-with-go-packages.bcrypt hash 10 password)" | ||
check="$(godeps-with-go-packages.bcrypt check "$hash" password)" | ||
[ "$check" = "Equal" ] |
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,24 @@ | ||
summary: Build and run a basic Godeps snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/godeps | ||
GOBIN/gobin: gobin | ||
GOBIN/no_gobin: | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
if [ -z "$GOBIN" ]; then | ||
unset GOBIN | ||
fi | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install godeps_*.snap --dangerous | ||
hash="$(godeps.bcrypt hash 10 password)" | ||
check="$(godeps.bcrypt check "$hash" password)" | ||
[ "$check" = "Equal" ] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions
10
...ps/godeps-with-go-packages/snapcraft.yaml → ...deps-with-go-packages/snap/snapcraft.yaml
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
File renamed without changes.
File renamed without changes.
10 changes: 8 additions & 2 deletions
10
...s/integration/snaps/godeps/snapcraft.yaml → ...s/godeps/snaps/godeps/snap/snapcraft.yaml
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
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,18 @@ | ||
summary: Build and run a basic meson snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/meson-hello | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
# There is no meson on trusty | ||
systems: [-ubuntu-14.04*] | ||
|
||
execute: | | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install meson-hello_*.snap --dangerous | ||
[ "$(meson-hello)" = "hello world" ] |
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,7 @@ | ||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
printf("hello world\n"); | ||
return 0; | ||
} |
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,2 @@ | ||
project('meson-hello', 'c') | ||
executable('hello', 'main.c', install : true) |
13 changes: 9 additions & 4 deletions
13
...egration/snaps/meson-hello/snapcraft.yaml → ...son/snaps/meson-hello/snap/snapcraft.yaml
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,17 +1,22 @@ | ||
name: meson-hello | ||
version: 0.1 | ||
version: '1.0' | ||
summary: test the meson plugin | ||
description: | | ||
This is a basic meson snap. It just prints a hello world. | ||
If you want to add other functionalities to this snap, please don't. | ||
Make a new one. | ||
grade: devel | ||
confinement: strict | ||
|
||
build-packages: [gcc, libc6-dev] | ||
apps: | ||
meson-hello: | ||
command: hello | ||
|
||
parts: | ||
meson-project: | ||
meson-parameters: | ||
- --prefix=/opt | ||
plugin: meson | ||
source: . | ||
meson-parameters: | ||
- --prefix=/ | ||
build-packages: [gcc, libc6-dev] |
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,15 @@ | ||
summary: Build and run a basic SCons snap | ||
|
||
environment: | ||
SNAP_DIR: ../snaps/scons-hello | ||
|
||
restore: | | ||
cd "$SNAP_DIR" | ||
snapcraft clean | ||
rm -f ./*.snap | ||
execute: | | ||
cd "$SNAP_DIR" | ||
snapcraft | ||
sudo snap install scons-hello_*.snap --dangerous | ||
[ "$(scons-hello)" = "hello world" ] |
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
Oops, something went wrong.