Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.

2 downloads

network-computer/scripts/build-linux.sh
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/demo/network-computer.git
HTTPS
https://gitstable.com/git/demo/network-computer.git
SSH
ssh://git@gitstable.com:2222/demo/network-computer.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

GitStable demo README: say this is a copy and where the original is cde82c2 13 hours, 27 minutes ago History
build-linux.sh · 1.2 KB · 36 lines
1#!/bin/sh
2# Build + test one project on Linux, driven by its DBBASIC.md `build:`/`test:`
3# fields when present, else sensible defaults per project type. Run inside a
4# project checkout on a build box (see provision/build-tools.sh).
5#
6# scripts/build-linux.sh [project-dir]
7set -e
8DIR=${1:-.}
9cd "$DIR"
10NAME=$(basename "$(pwd)")
11export PATH="/opt/flutter/bin:/usr/local/go/bin:$PATH"
12
13run() { echo ">> $NAME: $1"; shift; "$@"; }
14
15if [ -f pubspec.yaml ]; then
16 [ -d linux ] || run "add linux target" flutter create --platforms=linux .
17 run "pub get" flutter pub get
18 run "analyze" flutter analyze
19 run "test" xvfb-run -a flutter test
20 run "build linux" flutter build linux --release
21elif [ -f go.mod ]; then
22 run "vet" go vet ./...
23 run "test" go test ./...
24 run "build" go build ./...
25elif [ -f package.json ]; then
26 run "install" npm ci
27 run "test" sh -c 'npm test || echo "(no tests)"'
28 run "build" sh -c 'npm run build || echo "(no build script)"'
29elif [ -f requirements.txt ]; then
30 python3 -m venv .venv; . .venv/bin/activate
31 run "deps" pip install -q -r requirements.txt
32 run "test" sh -c 'python -m pytest -q || echo "(no pytest)"'
33else
34 echo "$NAME: unknown project type"; exit 1
35fi
36echo "$NAME: OK"