Compare commits
76 Commits
BL3_Sanctu
...
valid_set.
Author | SHA1 | Date | |
---|---|---|---|
8fe596ecaa | |||
2c5b05f01a | |||
bdf91e0957 | |||
4b012e64c4 | |||
528c25e11a | |||
82385d1164 | |||
f8fa02924c | |||
dee4a9c037 | |||
|
530e2763d9 | ||
98878bd6b6 | |||
9ac05f338b | |||
54620edeb8 | |||
3a2e419d27 | |||
c47f7d4ae8 | |||
8b72846275 | |||
4c889c28ce | |||
5f5c28b033 | |||
78d8b60f59 | |||
f0e5056de6 | |||
85803e95f1 | |||
f83c6b7988 | |||
112b745a45 | |||
d665e1f12e | |||
1e341a353a | |||
4c5d5867c7 | |||
|
06f0f40964 | ||
|
5940937f6e | ||
5916053780 | |||
ef9b330685 | |||
|
fc377e3a44 | ||
|
2b1714ed9b | ||
ac38241629 | |||
8c446eeb4b | |||
6d0a52a5df | |||
798f6de969 | |||
afb0e16596 | |||
ce3ffa7e6a | |||
ff65f260d0 | |||
a7c5db924d | |||
16abe31b34 | |||
6cae40e2e8 | |||
d32e075d3d | |||
bd71602b0a | |||
774b52e3e8 | |||
b349fe729a | |||
67f2a9f474 | |||
69ec0da893 | |||
116aae9465 | |||
|
5c4b1e769c | ||
|
3487e5da0b | ||
|
ed57c7ec28 | ||
659237211d | |||
933fb8d435 | |||
910c6bcf2d | |||
7a3ea5ad67 | |||
e815627197 | |||
d234291a5c | |||
f4a46241cd | |||
6cd74ba294 | |||
b5aeabc813 | |||
c1a221bd8a | |||
429acc65c2 | |||
277a153a90 | |||
444efdb279 | |||
70fbe935b6 | |||
|
0f093d4359 | ||
|
84b696b411 | ||
16ae62c21b | |||
a5f83748d6 | |||
6bb20f6d2d | |||
2d0e5429df | |||
3977fc4c13 | |||
4b5ae81dae | |||
03cce7edee | |||
9941fa7bac | |||
|
5d4770dfe1 |
5
.gitignore
vendored
@@ -4,7 +4,4 @@
|
||||
|
||||
# Ignore python stuff
|
||||
**/__pycache__
|
||||
**/.pytest_cache
|
||||
|
||||
# Ignore les fichiers système de MacOS
|
||||
**/.DS_Store
|
||||
**/.pytest_cache
|
@@ -9,8 +9,8 @@ stages:
|
||||
- Release
|
||||
|
||||
variables:
|
||||
ENTRY_FOLDER: assets
|
||||
RELEASE_VERSION: v$CI_PIPELINE_IID
|
||||
ENTRY_FOLDER: $CI_PROJECT_DIR/test # test directory for testing CI/CD, or assets directory for normal operations
|
||||
RELEASE_VERSION: v0.$CI_PIPELINE_IID
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${RELEASE_VERSION}"
|
||||
|
||||
# Jobs from here run on Merge Requests as prerequisite for merging.
|
||||
@@ -20,13 +20,14 @@ variables:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
|
||||
- changes:
|
||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||
script:
|
||||
- cd src/
|
||||
- npm install
|
||||
- npm run start
|
||||
- cat ../${ENTRY_FOLDER}/${PACKAGE_NAME}/theme.json
|
||||
- cat ${ENTRY_FOLDER}/${PACKAGE_NAME}/theme.json
|
||||
- npm run test
|
||||
artifacts:
|
||||
paths:
|
||||
@@ -38,6 +39,7 @@ variables:
|
||||
stage: Test
|
||||
image: python:latest
|
||||
rules:
|
||||
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
changes:
|
||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||
@@ -53,6 +55,7 @@ variables:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
changes:
|
||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||
@@ -70,6 +73,7 @@ variables:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
changes:
|
||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||
@@ -85,6 +89,7 @@ variables:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
when: never
|
||||
- if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
changes:
|
||||
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
|
||||
|
@@ -1,32 +0,0 @@
|
||||
manifest-job/BL2_frozen_wastelands:
|
||||
variables:
|
||||
PACKAGE_NAME: "BL2_frozen_wastelands"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/BL2_frozen_wastelands:
|
||||
needs:
|
||||
- manifest-job/BL2_frozen_wastelands
|
||||
variables:
|
||||
PACKAGE_NAME: "BL2_frozen_wastelands"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/BL2_frozen_wastelands:
|
||||
needs:
|
||||
- manifest-job/BL2_frozen_wastelands
|
||||
variables:
|
||||
PACKAGE_NAME: "BL2_frozen_wastelands"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/BL2_frozen_wastelands:
|
||||
needs:
|
||||
- bundle-job/BL2_frozen_wastelands
|
||||
variables:
|
||||
PACKAGE_NAME: "BL2_frozen_wastelands"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/BL2_frozen_wastelands:
|
||||
needs:
|
||||
- upload-job/BL2_frozen_wastelands
|
||||
variables:
|
||||
PACKAGE_NAME: "BL2_frozen_wastelands"
|
||||
extends: .release-job
|
@@ -1,32 +0,0 @@
|
||||
manifest-job/BL3_Sanctuary_Bay:
|
||||
variables:
|
||||
PACKAGE_NAME: "BL3_Sanctuary_Bay"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/BL3_Sanctuary_Bay:
|
||||
needs:
|
||||
- manifest-job/BL3_Sanctuary_Bay
|
||||
variables:
|
||||
PACKAGE_NAME: "BL3_Sanctuary_Bay"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/BL3_Sanctuary_Bay:
|
||||
needs:
|
||||
- manifest-job/BL3_Sanctuary_Bay
|
||||
variables:
|
||||
PACKAGE_NAME: "BL3_Sanctuary_Bay"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/BL3_Sanctuary_Bay:
|
||||
needs:
|
||||
- bundle-job/BL3_Sanctuary_Bay
|
||||
variables:
|
||||
PACKAGE_NAME: "BL3_Sanctuary_Bay"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/BL3_Sanctuary_Bay:
|
||||
needs:
|
||||
- upload-job/BL3_Sanctuary_Bay
|
||||
variables:
|
||||
PACKAGE_NAME: "BL3_Sanctuary_Bay"
|
||||
extends: .release-job
|
32
.gitlab/existing_valid_theme_set.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
manifest-job/existing_valid_theme_set:
|
||||
variables:
|
||||
PACKAGE_NAME: "existing_valid_theme_set"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/existing_valid_theme_set:
|
||||
needs:
|
||||
- manifest-job/existing_valid_theme_set
|
||||
variables:
|
||||
PACKAGE_NAME: "existing_valid_theme_set"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/existing_valid_theme_set:
|
||||
needs:
|
||||
- manifest-job/existing_valid_theme_set
|
||||
variables:
|
||||
PACKAGE_NAME: "existing_valid_theme_set"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/existing_valid_theme_set:
|
||||
needs:
|
||||
- bundle-job/existing_valid_theme_set
|
||||
variables:
|
||||
PACKAGE_NAME: "existing_valid_theme_set"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/existing_valid_theme_set:
|
||||
needs:
|
||||
- upload-job/existing_valid_theme_set
|
||||
variables:
|
||||
PACKAGE_NAME: "existing_valid_theme_set"
|
||||
extends: .release-job
|
32
.gitlab/missing_tag_set.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
manifest-job/missing_tag_set:
|
||||
variables:
|
||||
PACKAGE_NAME: "missing_tag_set"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/missing_tag_set:
|
||||
needs:
|
||||
- manifest-job/missing_tag_set
|
||||
variables:
|
||||
PACKAGE_NAME: "missing_tag_set"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/missing_tag_set:
|
||||
needs:
|
||||
- manifest-job/missing_tag_set
|
||||
variables:
|
||||
PACKAGE_NAME: "missing_tag_set"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/missing_tag_set:
|
||||
needs:
|
||||
- bundle-job/missing_tag_set
|
||||
variables:
|
||||
PACKAGE_NAME: "missing_tag_set"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/missing_tag_set:
|
||||
needs:
|
||||
- upload-job/missing_tag_set
|
||||
variables:
|
||||
PACKAGE_NAME: "missing_tag_set"
|
||||
extends: .release-job
|
32
.gitlab/unbalanced_set.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
manifest-job/unbalanced_set:
|
||||
variables:
|
||||
PACKAGE_NAME: "unbalanced_set"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/unbalanced_set:
|
||||
needs:
|
||||
- manifest-job/unbalanced_set
|
||||
variables:
|
||||
PACKAGE_NAME: "unbalanced_set"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/unbalanced_set:
|
||||
needs:
|
||||
- manifest-job/unbalanced_set
|
||||
variables:
|
||||
PACKAGE_NAME: "unbalanced_set"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/unbalanced_set:
|
||||
needs:
|
||||
- bundle-job/unbalanced_set
|
||||
variables:
|
||||
PACKAGE_NAME: "unbalanced_set"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/unbalanced_set:
|
||||
needs:
|
||||
- upload-job/unbalanced_set
|
||||
variables:
|
||||
PACKAGE_NAME: "unbalanced_set"
|
||||
extends: .release-job
|
32
.gitlab/valid_set.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
manifest-job/valid_set:
|
||||
variables:
|
||||
PACKAGE_NAME: "valid_set"
|
||||
extends: .manifest-job
|
||||
|
||||
test-images-job/valid_set:
|
||||
needs:
|
||||
- manifest-job/valid_set
|
||||
variables:
|
||||
PACKAGE_NAME: "valid_set"
|
||||
extends: .test-job
|
||||
|
||||
bundle-job/valid_set:
|
||||
needs:
|
||||
- manifest-job/valid_set
|
||||
variables:
|
||||
PACKAGE_NAME: "valid_set"
|
||||
extends: .bundle-job
|
||||
|
||||
upload-job/valid_set:
|
||||
needs:
|
||||
- bundle-job/valid_set
|
||||
variables:
|
||||
PACKAGE_NAME: "valid_set"
|
||||
extends: .upload-job
|
||||
|
||||
release-job/valid_set:
|
||||
needs:
|
||||
- upload-job/valid_set
|
||||
variables:
|
||||
PACKAGE_NAME: "valid_set"
|
||||
extends: .release-job
|
18
.vscode/launch.json
vendored
@@ -12,8 +12,7 @@
|
||||
"start"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "valid_set"
|
||||
},
|
||||
"skipFiles": [
|
||||
@@ -31,8 +30,7 @@
|
||||
"test"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "valid_set"
|
||||
},
|
||||
"skipFiles": [
|
||||
@@ -53,8 +51,7 @@
|
||||
"--color=yes"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "valid_set"
|
||||
},
|
||||
"justMyCode": true
|
||||
@@ -70,8 +67,7 @@
|
||||
"start"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "existing_valid_theme_set"
|
||||
},
|
||||
"skipFiles": [
|
||||
@@ -89,8 +85,7 @@
|
||||
"test"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "existing_valid_theme_set"
|
||||
},
|
||||
"skipFiles": [
|
||||
@@ -111,8 +106,7 @@
|
||||
"--color=yes"
|
||||
],
|
||||
"env": {
|
||||
"CI_PROJECT_DIR": "${workspaceFolder}",
|
||||
"ENTRY_FOLDER": "test",
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "existing_valid_theme_set"
|
||||
},
|
||||
"justMyCode": true
|
||||
|
Before Width: | Height: | Size: 909 KiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 977 KiB |
Before Width: | Height: | Size: 968 KiB |
Before Width: | Height: | Size: 928 KiB |
Before Width: | Height: | Size: 944 KiB |
Before Width: | Height: | Size: 952 KiB |
Before Width: | Height: | Size: 1002 KiB |
Before Width: | Height: | Size: 892 KiB |
Before Width: | Height: | Size: 876 KiB |
Before Width: | Height: | Size: 935 KiB |
Before Width: | Height: | Size: 942 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 996 KiB |
Before Width: | Height: | Size: 878 KiB |
Before Width: | Height: | Size: 947 KiB |
Before Width: | Height: | Size: 980 KiB |
Before Width: | Height: | Size: 954 KiB |
Before Width: | Height: | Size: 1009 KiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1.2 MiB |
@@ -5,11 +5,10 @@ const { exit } = require("process");
|
||||
|
||||
|
||||
// Fetch envs to target the right folder
|
||||
const workDir = process.env["CI_PROJECT_DIR"];
|
||||
const root = process.env["ENTRY_FOLDER"];
|
||||
const slug = process.env["PACKAGE_NAME"];
|
||||
if (!workDir || !slug || !root) exit(1);
|
||||
let workingDirectory = path.join(workDir, root, slug);
|
||||
const root = process.env["ENTRY_FOLDER"];
|
||||
if (!slug || !root) exit(1);
|
||||
let workingDirectory = path.join(root, slug);
|
||||
|
||||
// extract metadata from them
|
||||
fs.readdir(workingDirectory, (err, files) => {
|
||||
|
@@ -33,13 +33,11 @@ function flatReferences(manifest) {
|
||||
|
||||
describe('Mandatory Checks', function () {
|
||||
before(function () {
|
||||
const workDir = process.env["CI_PROJECT_DIR"];
|
||||
expect(workDir).to.be.a("string").that.is.not.empty;
|
||||
const slug = process.env["PACKAGE_NAME"];
|
||||
expect(slug).to.be.a("string").that.is.not.empty;
|
||||
const root = process.env["ENTRY_FOLDER"];
|
||||
expect(root).to.be.a("string").that.is.not.empty;
|
||||
workingDirectory = path.join(workDir, root, slug);
|
||||
workingDirectory = path.join(root, slug);
|
||||
files = fs.readdirSync(workingDirectory);
|
||||
expect(files).to.be.an('array').that.is.not.empty;
|
||||
validator = ajv.compile(JSON.parse(fs.readFileSync(themeSchemaFile, 'utf8')));
|
||||
|
@@ -40,10 +40,9 @@ def _validate_brightness_image(working_path, theme_config, high_light, image_lis
|
||||
@pytest.fixture
|
||||
def working_path():
|
||||
# get the global variables containing gitlab-given project slug.
|
||||
work_directory = os.environ["CI_PROJECT_DIR"]
|
||||
entry_folder = os.environ["ENTRY_FOLDER"]
|
||||
project_slug = os.environ["PACKAGE_NAME"]
|
||||
working_path = Path(work_directory, entry_folder, project_slug)
|
||||
root_folder = os.environ["ENTRY_FOLDER"]
|
||||
working_path = Path(root_folder, project_slug)
|
||||
if not working_path.is_dir():
|
||||
raise FileNotFoundError(f"No project found for the given {working_path}.")
|
||||
return working_path
|
||||
|
@@ -2,12 +2,12 @@
|
||||
"dayImageList": [
|
||||
1
|
||||
],
|
||||
"imageFilename": "stray__*.jpg",
|
||||
"nightImageList": [
|
||||
2
|
||||
],
|
||||
"imageCredits": "©Thoscellen, ©BlueTwelve",
|
||||
"sunsetImageList": [],
|
||||
"sunriseImageList": [],
|
||||
"displayName": "Stray",
|
||||
"sunsetImageList": []
|
||||
"imageFilename": "stray__*.jpg",
|
||||
"imageCredits": "©Thoscellen, ©BlueTwelve",
|
||||
"displayName": "Stray"
|
||||
}
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"imageFilename": "bl3_landscape_*.jpg",
|
||||
"displayName": "BL3",
|
||||
"imageCredits": "© Gearbox",
|
||||
"displayName": "BL3",
|
||||
"dayImageList": [
|
||||
2
|
||||
],
|
||||
|