generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct permission for vcpkg and add tests (#23)
* chore: use javascript-node * fix: correct permission for vcpkg and add tests * remove ubuntu:boinic from test matrix --------- Signed-off-by: msclock <[email protected]>
- Loading branch information
Showing
13 changed files
with
180 additions
and
7 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 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 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,10 @@ | ||
{ | ||
"scene_tag": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"features": { | ||
"gitlab-ci-local": { | ||
"version": "4.55.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,21 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
# This test can be run with the following command (from the root of this repo) | ||
# devcontainer features test \ | ||
# --features vcpkg \ | ||
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "gitlab-ci-local is installed" gitlab-ci-local --version | ||
|
||
# Report results | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults |
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,35 @@ | ||
{ | ||
"scene_use_existing_user_vscode": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"remoteUser": "vscode", | ||
"features": { | ||
"vcpkg": {} | ||
} | ||
}, | ||
"scene_use_created_user_dummy": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"remoteUser": "dummy", | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"username": "dummy" | ||
}, | ||
"vcpkg": {} | ||
} | ||
}, | ||
"scene_stable": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"features": { | ||
"vcpkg": { | ||
"vcpkgversion": "stable" | ||
} | ||
} | ||
}, | ||
"scene_tag": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu", | ||
"features": { | ||
"vcpkg": { | ||
"vcpkgversion": "2024.09.30" | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
# This test can be run with the following command (from the root of this repo) | ||
# devcontainer features test \ | ||
# --features vcpkg \ | ||
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "vcpkg is installed" vcpkg --version | ||
check "cmake is installed" cmake --version | ||
check "write permission" bash -c "test -w /usr/local/vcpkg" | ||
|
||
# Report results | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
# This test can be run with the following command (from the root of this repo) | ||
# devcontainer features test \ | ||
# --features vcpkg \ | ||
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "vcpkg is installed" vcpkg --version | ||
check "cmake is installed" cmake --version | ||
check "write permission" bash -c "test -w /usr/local/vcpkg" | ||
|
||
# Report results | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
# This test can be run with the following command (from the root of this repo) | ||
# devcontainer features test \ | ||
# --features vcpkg \ | ||
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "vcpkg is installed" vcpkg --version | ||
check "cmake is installed" cmake --version | ||
check "write permission" bash -c "test -w /usr/local/vcpkg" | ||
|
||
# Report results | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults |
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,23 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
|
||
# This test can be run with the following command (from the root of this repo) | ||
# devcontainer features test \ | ||
# --features vcpkg \ | ||
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu . | ||
|
||
set -e | ||
|
||
# Optional: Import test library bundled with the devcontainer CLI | ||
source dev-container-features-test-lib | ||
|
||
# Feature-specific tests | ||
# The 'check' command comes from the dev-container-features-test-lib. | ||
check "vcpkg is installed" vcpkg --version | ||
check "cmake is installed" cmake --version | ||
check "write permission" bash -c "test -w /usr/local/vcpkg" | ||
|
||
# Report results | ||
# If any of the checks above exited with a non-zero exit code, the test will fail. | ||
reportResults |
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