@malloydata/malloy-tests 0.0.148 → 0.0.149-dev240704171255

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/package.json CHANGED
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@jest/globals": "^29.4.3",
24
- "@malloydata/db-bigquery": "^0.0.148",
25
- "@malloydata/db-duckdb": "^0.0.148",
26
- "@malloydata/db-postgres": "^0.0.148",
27
- "@malloydata/db-snowflake": "^0.0.148",
28
- "@malloydata/db-trino": "^0.0.148",
29
- "@malloydata/malloy": "^0.0.148",
30
- "@malloydata/render": "^0.0.148",
24
+ "@malloydata/db-bigquery": "^0.0.149-dev240704171255",
25
+ "@malloydata/db-duckdb": "^0.0.149-dev240704171255",
26
+ "@malloydata/db-postgres": "^0.0.149-dev240704171255",
27
+ "@malloydata/db-snowflake": "^0.0.149-dev240704171255",
28
+ "@malloydata/db-trino": "^0.0.149-dev240704171255",
29
+ "@malloydata/malloy": "^0.0.149-dev240704171255",
30
+ "@malloydata/render": "^0.0.149-dev240704171255",
31
31
  "jsdom": "^22.1.0",
32
32
  "luxon": "^2.4.0",
33
33
  "madge": "^6.0.0"
@@ -36,5 +36,5 @@
36
36
  "@types/jsdom": "^21.1.1",
37
37
  "@types/luxon": "^2.4.0"
38
38
  },
39
- "version": "0.0.148"
39
+ "version": "0.0.149-dev240704171255"
40
40
  }
@@ -0,0 +1,33 @@
1
+ #! /bin/bash
2
+ rm -rf .tmp
3
+ mkdir .tmp
4
+
5
+ # generate config file
6
+ > ./.tmp/bigquery.properties
7
+ cat << EOF > ./.tmp/bigquery.properties
8
+ connector.name=bigquery
9
+ bigquery.project-id=advance-lacing-417917
10
+ bigquery.credentials-key=$BQ_CREDENTIALS_KEY
11
+ EOF
12
+
13
+ # run docker
14
+ docker run -p 8080:8080 -d -v ./.tmp/bigquery.properties:/opt/presto-server/etc/catalog/bigquery.properties --name presto-malloy prestodb/presto:0.287
15
+
16
+ # wait for server to start
17
+ counter=0
18
+ while ! docker logs presto-malloy 2>&1 | grep -q "SERVER STARTED"
19
+ do
20
+ sleep 1
21
+ counter=$((counter+1))
22
+ # if doesn't start after 2 minutes, output logs and kill process
23
+ if [ $counter -eq 120 ]
24
+ then
25
+ docker logs presto-malloy >& ./.tmp/presto-malloy.logs
26
+ docker rm -f presto-malloy
27
+ echo "Presto did not start successfully, check .tmp/presto-malloy.logs"
28
+ exit 1
29
+ break
30
+ fi
31
+ done
32
+
33
+ echo "Presto running on port 8080"
@@ -0,0 +1,7 @@
1
+ #! /bin/bash
2
+
3
+ # clear tmp files
4
+ rm -rf .tmp
5
+
6
+ # stop container
7
+ docker rm -f presto-malloy