Skip to content

Commit

Permalink
ci: Configure installation of dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
macie committed Nov 19, 2023
1 parent 588a289 commit e3dd072
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ test:
@echo '# Unit tests: $(TEST)' >&2
@$(TEST)

install:
@echo '# Install in /usr/local/bin' >&2
@mkdir -p /usr/local/bin
@cp unittest /usr/local/bin/

dist: unittest
@echo '# Create release artifacts in ./dist' >&2
@mkdir -p ./dist
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,22 @@ For example, tests see files inside the [tests directory](./tests).
mv unittest /usr/local/bin/
```

### Development version

```bash
git clone [email protected]:macie/unittest.sh.git
cd unittest.sh
make && make install
```

## Development

Use `make` (GNU or BSD):

- `make` - run checks
- `make test` - run test
- `make check` - perform static code analysis
- `make install` - install in `/usr/local/bin`
- `make dist` - prepare for distributing
- `make clean` - remove distributed artifacts
- `make release` - tag latest commit as a new release
Expand Down

0 comments on commit e3dd072

Please sign in to comment.