eitri-cli 1.8.0 → 1.9.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +2 -1
- package/bitbucket-pipelines.yml +35 -1
- package/config/dev.js +1 -1
- package/config/k8s-eitri.js +1 -1
- package/config/loc-eitri.js +1 -1
- package/eitri-cli-v2/Cargo.lock +2500 -0
- package/eitri-cli-v2/Cargo.toml +21 -0
- package/eitri-cli-v2/README.md +119 -0
- package/eitri-cli-v2/index.js +2 -0
- package/eitri-cli-v2/index.unix.node +0 -0
- package/eitri-cli-v2/index.win32.node +0 -0
- package/eitri-cli-v2/node_modules/.yarn-integrity +16 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/LICENSE +21 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/README.md +93 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/bin/cargo-cp-artifact.js +6 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/package.json +34 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/src/args.js +131 -0
- package/eitri-cli-v2/node_modules/cargo-cp-artifact/src/index.js +164 -0
- package/eitri-cli-v2/package-lock.json +26 -0
- package/eitri-cli-v2/package.json +21 -0
- package/eitri-cli-v2/src/commands/mod.rs +1 -0
- package/eitri-cli-v2/src/commands/publish.rs +67 -0
- package/eitri-cli-v2/src/config/mod.rs +1 -0
- package/eitri-cli-v2/src/config/user_credentials.rs +38 -0
- package/eitri-cli-v2/src/infra/async_runtime.rs +9 -0
- package/eitri-cli-v2/src/infra/http_client.rs +484 -0
- package/eitri-cli-v2/src/infra/mod.rs +2 -0
- package/eitri-cli-v2/src/lib.rs +41 -0
- package/eitri-cli-v2/src/model/auth_response.rs +8 -0
- package/eitri-cli-v2/src/model/credentials.rs +8 -0
- package/eitri-cli-v2/src/model/eitri_conf.rs +43 -0
- package/eitri-cli-v2/src/model/mod.rs +4 -0
- package/eitri-cli-v2/src/model/revision.rs +14 -0
- package/eitri-cli-v2/src/services/blind_guardian.rs +87 -0
- package/eitri-cli-v2/src/services/eitri_manager.rs +78 -0
- package/eitri-cli-v2/src/services/mod.rs +3 -0
- package/eitri-cli-v2/src/services/workspace.rs +46 -0
- package/eitri-cli-v2/src/utils/convert_eitri_conf.rs +98 -0
- package/eitri-cli-v2/src/utils/mod.rs +1 -0
- package/eitri-cli-v2/yarn.lock +8 -0
- package/index.js +16 -0
- package/install-dev.bat +1 -1
- package/install-dev.sh +1 -1
- package/package.json +1 -1
- package/src/cmd/push-version.js +20 -9
- package/src/cmd/start.js +5 -2
- package/src/cmd/validate.js +1 -1
- package/src/modules/vegvisir/VegvisirService.js +2 -2
- package/src/service/MiniLog.js +1 -1
- package/src/service/QRCodeFactory.js +1 -1
- package/src/service/Workspace.js +9 -8
- package/src/util/LogUtil.js +14 -0
- package/test/e2e/cli.test.js +54 -0
package/.vscode/settings.json
CHANGED
package/bitbucket-pipelines.yml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
image: node:18-alpine
|
|
2
|
+
|
|
2
3
|
pipelines:
|
|
3
4
|
custom:
|
|
4
5
|
test-validation:
|
|
@@ -17,23 +18,56 @@ pipelines:
|
|
|
17
18
|
caches:
|
|
18
19
|
- node
|
|
19
20
|
script:
|
|
21
|
+
- apk add openssl-dev
|
|
22
|
+
- apk add pkgconfig
|
|
23
|
+
- apk add cargo
|
|
24
|
+
- cd eitri-cli-v2
|
|
25
|
+
- yarn install
|
|
26
|
+
- cd ..
|
|
20
27
|
- apk add git
|
|
21
28
|
- apk add chromium
|
|
22
29
|
- export PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
|
|
23
30
|
- yarn
|
|
24
31
|
- npm i -g .
|
|
25
32
|
- yarn test cli.test.js --force-exit
|
|
33
|
+
- step: &runRustTests
|
|
34
|
+
name: Run Rust tests
|
|
35
|
+
caches:
|
|
36
|
+
- node
|
|
37
|
+
script:
|
|
38
|
+
- apk add openssl-dev
|
|
39
|
+
- apk add pkgconfig
|
|
40
|
+
- apk add cargo
|
|
41
|
+
- cd eitri-cli-v2
|
|
42
|
+
- cargo test
|
|
26
43
|
branches:
|
|
27
44
|
"**":
|
|
28
45
|
- step: *runTests
|
|
46
|
+
- step: *runRustTests
|
|
29
47
|
'{beta,master}':
|
|
30
|
-
- step: *runTests
|
|
48
|
+
# - step: *runTests
|
|
49
|
+
# - step: *runRustTests
|
|
31
50
|
- step:
|
|
32
51
|
name: "Generation of a new version: beta or stable."
|
|
33
52
|
caches:
|
|
34
53
|
- node
|
|
35
54
|
script:
|
|
36
55
|
- apk add git
|
|
56
|
+
- apk add openssl-dev
|
|
57
|
+
- apk add pkgconfig
|
|
58
|
+
- apk add cargo
|
|
59
|
+
- apk add mingw-w64-gcc
|
|
60
|
+
- apk add --no-cache build-base curl
|
|
61
|
+
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
62
|
+
- export PATH="/root/.cargo/bin:${PATH}"
|
|
63
|
+
- rustup --version
|
|
64
|
+
- rustup target add x86_64-pc-windows-gnu
|
|
65
|
+
- rustup target add x86_64-unknown-linux-musl
|
|
66
|
+
- cd eitri-cli-v2
|
|
67
|
+
- RUSTFLAGS="-C target-feature=-crt-static" yarn install
|
|
68
|
+
- yarn install:win32
|
|
69
|
+
- rm -rf target
|
|
70
|
+
- cd ..
|
|
37
71
|
- echo 'Start release'
|
|
38
72
|
- echo 'If there is a new version, it will be automatically published on NPM according to the channel/branch (beta or master (stable)).'
|
|
39
73
|
- yarn
|
package/config/dev.js
CHANGED
|
@@ -86,7 +86,7 @@ const config = {
|
|
|
86
86
|
url: "https://analytics.dev.eitri.calindra.com.br/analytics/event",
|
|
87
87
|
},
|
|
88
88
|
managerFront: {
|
|
89
|
-
url:
|
|
89
|
+
url: "https://beta-console.eitri.tech",
|
|
90
90
|
managerCredential: "/settings/manager-credential",
|
|
91
91
|
cliGenerateLoginCredential: "/settings/cli-generate-credential",
|
|
92
92
|
},
|
package/config/k8s-eitri.js
CHANGED
package/config/loc-eitri.js
CHANGED
|
@@ -91,7 +91,7 @@ const config = {
|
|
|
91
91
|
url: "https://analytics.dev.eitri.calindra.com.br/analytics/event",
|
|
92
92
|
},
|
|
93
93
|
managerFront: {
|
|
94
|
-
url:
|
|
94
|
+
url: "https://beta-console.eitri.tech",
|
|
95
95
|
managerCredential: "/settings/manager-credential",
|
|
96
96
|
cliGenerateLoginCredential: "/settings/cli-generate-credential",
|
|
97
97
|
},
|