Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 620665b

Browse files
committed
Generate, publish and use prebuild images
1 parent 963d7f4 commit 620665b

File tree

4 files changed

+35
-29
lines changed

4 files changed

+35
-29
lines changed

‎package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"version": "1.0.0-RC3.0",
44
"description": "Generate a NodeOS initramfs",
55
"scripts": {
6+
"BigRedButton": "scripts/BigRedButton",
67
"build": "scripts/build",
7-
"install": "prebuild-install || (buildDependencies && npm run build)",
8+
"install": "prebuild-install -d https://github.com/NodeOS/nodeos-initramfs/releases/download/v{version}/{platform}-{arch}.tar.gz || (buildDependencies && npm run build)",
89
"start": "scripts/start",
910
"postinstall": "scripts/postinstall",
10-
"prepublish": "scripts/prepublish",
11+
"pretest": "scripts/pretest",
1112
"test": "scripts/test",
1213
"unbuild": "scripts/unbuild"
1314
},

‎scripts/BigRedButton

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
# This script should generate all the possible build combinations of
4+
# nodeos-barebones and test them by being able to exec a Node.js REPL. In some
5+
# cases this could not be fully possible and so the tests should be improved in
6+
# the future
7+
8+
9+
BUILD="npm run build --no-spin"
10+
TEST="npm test"
11+
12+
13+
eval MACHINE=pc BITS=32 $BUILD && MACHINE=pc BITS=32 $TEST || exit 1
14+
eval MACHINE=pc BITS=64 $BUILD && MACHINE=pc BITS=64 $TEST || exit 2
15+
eval MACHINE=raspi2 $BUILD || exit 3
16+
17+
18+
#
19+
# Upload release to GitHub
20+
#
21+
22+
if [ "$GITHUB_TOKEN" ]; then
23+
prebuild --upload-all $GITHUB_TOKEN || exit 10
24+
fi

‎scripts/prepublish

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎scripts/pretest

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
4+
npm install nodeos-barebones qemu suppose
5+
6+
cd `node -p "require('nodeos-barebones')"`
7+
8+
npm install --production

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /