@explorable-viz/fluid 0.12.7 → 0.12.9

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.12.7",
4
- "description": "A functional programming language which integrates a bidirectional dynamic analysis, connecting outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
3
+ "version": "0.12.9",
4
+ "description": "A pure functional dialect of Python, based on PurePy, with a dependency-tracking runtime for creating interactive outputs linked to data.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/explorable-viz/fluid.git#release"
@@ -1,10 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  set -e
3
3
 
4
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5
- FLUID_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
6
-
7
4
  echo "Installing Puppeteer browsers..."
8
- cd "$FLUID_ROOT"
9
- yarn puppeteer browsers install chrome
10
- yarn puppeteer browsers install firefox
5
+ npx puppeteer browsers install chrome
6
+ npx puppeteer browsers install firefox
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env bash
2
+ # Wait for GitHub Pages deployment then run Puppeteer tests.
3
+ # Usage: test-deployed-website.sh <base-url> <website-dir>
4
+ # Requires GH_TOKEN to be set.
5
+ set -e
6
+
7
+ BASE_URL="$1"
8
+ WEBSITE_DIR="$2"
9
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
10
+
11
+ if [ -z "$BASE_URL" ] || [ -z "$WEBSITE_DIR" ]; then
12
+ echo "Usage: $0 <base-url> <website-dir>" >&2
13
+ exit 1
14
+ fi
15
+
16
+ DEPLOY_TIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)
17
+ LATEST='gh run list --workflow=pages-build-deployment --branch=gh-pages --limit=1'
18
+
19
+ "$SCRIPT_DIR/poll.sh" "Waiting for Pages deployment to start..." 30 \
20
+ "[[ \"\$($LATEST --json createdAt --jq '.[0].createdAt')\" > \"$DEPLOY_TIME\" ]]"
21
+
22
+ "$SCRIPT_DIR/poll.sh" "Waiting for Pages deployment to complete..." 60 \
23
+ "[ \"\$($LATEST --json status --jq '.[0].status')\" = \"completed\" ]"
24
+
25
+ CONCLUSION=$(eval "$LATEST --json conclusion --jq '.[0].conclusion'")
26
+ echo "Pages deployment: $CONCLUSION"
27
+ [ "$CONCLUSION" = "success" ] || { echo "Pages deployment failed!" >&2; exit 1; }
28
+
29
+ "$SCRIPT_DIR/install-puppeteer.sh"
30
+ cd "$WEBSITE_DIR"
31
+ "$SCRIPT_DIR/run-website-tests.sh" "$BASE_URL"