eitri-cli 1.9.0-beta.1 → 1.9.0-beta.10

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.
@@ -1,5 +1,4 @@
1
- image: node:18-alpine
2
-
1
+ image: node:18-buster
3
2
  pipelines:
4
3
  custom:
5
4
  test-validation:
@@ -18,14 +17,15 @@ pipelines:
18
17
  caches:
19
18
  - node
20
19
  script:
21
- - apk add openssl-dev
22
- - apk add pkgconfig
23
- - apk add cargo
20
+ - apt-get update
21
+ - apt-get install -y libssl-dev
22
+ - apt-get install -y pkg-config
23
+ - apt-get install -y cargo
24
24
  - cd eitri-cli-v2
25
25
  - yarn install
26
26
  - cd ..
27
- - apk add git
28
- - apk add chromium
27
+ - apt-get install -y git
28
+ - apt-get install -y chromium
29
29
  - export PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
30
30
  - yarn
31
31
  - npm i -g .
@@ -35,9 +35,10 @@ pipelines:
35
35
  caches:
36
36
  - node
37
37
  script:
38
- - apk add openssl-dev
39
- - apk add pkgconfig
40
- - apk add cargo
38
+ - apt-get update
39
+ - apt-get install -y libssl-dev
40
+ - apt-get install -y pkg-config
41
+ - apt-get install -y cargo
41
42
  - cd eitri-cli-v2
42
43
  - cargo test
43
44
  branches:
@@ -45,26 +46,29 @@ pipelines:
45
46
  - step: *runTests
46
47
  - step: *runRustTests
47
48
  '{beta,master}':
48
- - step: *runTests
49
- - step: *runRustTests
49
+ # - step: *runTests
50
+ # - step: *runRustTests
50
51
  - step:
51
52
  name: "Generation of a new version: beta or stable."
52
53
  caches:
53
54
  - node
54
55
  script:
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
56
+ - ldd --version
57
+ - apt-get update
58
+ - apt-get install -y git
59
+ - apt-get install -y libssl-dev
60
+ - apt-get install -y libudev-dev
61
+ - apt-get install -y pkg-config
62
+ - apt-get install -y cargo
63
+ - apt-get install -y gcc-mingw-w64
64
+ - apt-get install -y curl
61
65
  - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
62
66
  - export PATH="/root/.cargo/bin:${PATH}"
63
67
  - rustup --version
64
68
  - rustup target add x86_64-pc-windows-gnu
69
+ - rustup target add x86_64-unknown-linux-gnu
65
70
  - cd eitri-cli-v2
66
- # RUSTFLAGS necessárias somente pra UNIX
67
- - RUSTFLAGS="-C target-feature=-crt-static" yarn install
71
+ - yarn install
68
72
  - yarn install:win32
69
73
  - rm -rf target
70
74
  - cd ..
@@ -372,9 +372,9 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223"
372
372
 
373
373
  [[package]]
374
374
  name = "cc"
375
- version = "1.0.89"
375
+ version = "1.0.90"
376
376
  source = "registry+https://github.com/rust-lang/crates.io-index"
377
- checksum = "a0ba8f7aaa012f30d5b2861462f6708eccd49c3c39863fe083a308035f63d723"
377
+ checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5"
378
378
 
379
379
  [[package]]
380
380
  name = "cfg-if"
@@ -500,10 +500,12 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
500
500
  name = "eitri-cli-v2"
501
501
  version = "0.1.0"
502
502
  dependencies = [
503
+ "cc",
503
504
  "homedir",
504
505
  "httpmock",
505
506
  "neon",
506
507
  "once_cell",
508
+ "openssl",
507
509
  "reqwest",
508
510
  "serde",
509
511
  "serde_derive",
@@ -1344,6 +1346,15 @@ version = "0.1.5"
1344
1346
  source = "registry+https://github.com/rust-lang/crates.io-index"
1345
1347
  checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
1346
1348
 
1349
+ [[package]]
1350
+ name = "openssl-src"
1351
+ version = "300.2.3+3.2.1"
1352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1353
+ checksum = "5cff92b6f71555b61bb9315f7c64da3ca43d87531622120fea0195fc761b4843"
1354
+ dependencies = [
1355
+ "cc",
1356
+ ]
1357
+
1347
1358
  [[package]]
1348
1359
  name = "openssl-sys"
1349
1360
  version = "0.9.101"
@@ -1352,6 +1363,7 @@ checksum = "dda2b0f344e78efc2facf7d195d098df0dd72151b26ab98da807afc26c198dff"
1352
1363
  dependencies = [
1353
1364
  "cc",
1354
1365
  "libc",
1366
+ "openssl-src",
1355
1367
  "pkg-config",
1356
1368
  "vcpkg",
1357
1369
  ]
@@ -9,7 +9,6 @@ exclude = ["index.node"]
9
9
  crate-type = ["cdylib"]
10
10
 
11
11
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
12
-
13
12
  [dependencies]
14
13
  homedir = "0.2.1"
15
14
  httpmock = "0.7.0"
@@ -20,3 +19,5 @@ serde = { version = "1.0.197", features = ["derive"] }
20
19
  serde_derive = "1.0.197"
21
20
  serde_json = "1.0.114"
22
21
  tokio = { version = "1.36.0", features = ["full"] }
22
+ openssl = { version = "0.10", features = ["vendored"] }
23
+ cc = "1.0.90"
Binary file
Binary file
@@ -4,7 +4,7 @@
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "build": "cargo-cp-artifact -nc index.unix.node -- cargo build --message-format=json-render-diagnostics",
7
+ "build": "cargo-cp-artifact -nc index.unix.node -- cargo build --message-format=json-render-diagnostics --target x86_64-unknown-linux-gnu",
8
8
  "build:win32": "cargo-cp-artifact -nc index.win32.node -- cargo build --message-format=json-render-diagnostics --target x86_64-pc-windows-gnu",
9
9
  "build-debug": "npm run build --",
10
10
  "build-release": "npm run build -- --release",
@@ -18,7 +18,7 @@ pub async fn get_revision(eitri_app_id: &str, version: &str) -> Result<Revision,
18
18
  {
19
19
  Ok(token) => token,
20
20
  Err(_err) => {
21
- eprintln!("Houve um erro ao autenticar-se no Blind-Guardian");
21
+ eprintln!("Houve um erro ao autenticar-se no Eitri");
22
22
  exit(1)
23
23
  }
24
24
  };
@@ -35,7 +35,7 @@ pub async fn get_revision(eitri_app_id: &str, version: &str) -> Result<Revision,
35
35
  let revision = match result.revisions.first() {
36
36
  Some(revision) => revision.clone(),
37
37
  None => {
38
- eprintln!("Versão não encontrada, certifique-se de que mesma foi criada.");
38
+ eprintln!("Versão não encontrada, certifique-se de que foi feito push-version antes de publicar a versão.");
39
39
  exit(1)
40
40
  }
41
41
  };
package/index.js CHANGED
@@ -8,7 +8,7 @@ const { workspace } = require("./src/service/Workspace");
8
8
  const configService = require("./src/service/ConfigService");
9
9
  const VegvisirCommand = require("./src/modules/vegvisir/VegvisirCommand");
10
10
  const debug = require('debug')('eitri:run')
11
- const eitriCLIV2 = require('./eitri-cli-v2/.')
11
+
12
12
 
13
13
  const run = async () => {
14
14
  debug("Iniciando run()")
@@ -145,6 +145,7 @@ const run = async () => {
145
145
  "Adiciona comentários na versão"
146
146
  )
147
147
  .action(async (cmdObj) => {
148
+ const eitriCLIV2 = require('./eitri-cli-v2/.')
148
149
  await eitriCLIV2.publish(cmdObj.environment, cmdObj.message || '')
149
150
  });
150
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.9.0-beta.1",
3
+ "version": "1.9.0-beta.10",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {