Skip to content

Commit

Permalink
refactor: toast.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Aug 5, 2023
1 parent 5430cf8 commit 427e03b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ For examples see:
## Prerequisites

- python 3.7+
- Ubuntu 20.04: `sudo apt install python3 python3-pip python3-dev python3-venv`
- automake:
- Ubuntu: `sudo apt install automake`
- macOS: `brew install automake`

## Install

Expand Down
17 changes: 6 additions & 11 deletions toast.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
image: python:3.7-slim
command_prefix: set -euo pipefail
tasks:
packages-update:
install-packages:
command:
apt-get update && apt-get upgrade -y
packages-install:
dependencies:
- packages-update
command:
apt-get install -y gcc automake make git curl
apt-get update && apt-get install -y curl git make
install-node:
dependencies:
- packages-install
- install-packages
command: |
curl -sL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
Expand All @@ -28,16 +24,15 @@ tasks:
# needed so the editable package (.pth) we install points at src
mkdir src
make install
check-test:
hooks:
description: make hooks
dependencies:
- install
input_paths:
# needed to avoid running hooks on *.egg-info files generated by pip install -e .
- .gitignore
- src/
- tests/
environment:
CI: true
command: |
# needed for pre-commit to see files
git add src tests
Expand Down

0 comments on commit 427e03b

Please sign in to comment.