Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main' into refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Fritz Payr committed Apr 21, 2024
2 parents e0a5a24 + 8a80836 commit d753fb8
Show file tree
Hide file tree
Showing 14 changed files with 123 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,17 @@ jobs:
- name: Test hashFile
run: |
cd hashFile
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate
bash ci.sh
cd ../
- name: Test watcher
run: |
cd watcher
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate
bash ci.sh
cd ../
- name: Test diffFiles
run: |
cd diffFiles
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate
bash ci.sh
cd ../
1 change: 1 addition & 0 deletions database/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build
17 changes: 17 additions & 0 deletions database/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# Installation

```
eval $(opam env)
```
# Build

```
dune build
```
# Run

```
dune exec database
```
4 changes: 4 additions & 0 deletions database/bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(executable
(public_name database)
(name main)
(libraries database))
14 changes: 14 additions & 0 deletions database/bin/main.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
open Cmdliner

let init =
let
full_permissions = 0o777
in
Sys.mkdir "db" full_permissions

let cmd = Cmd.group (Cmd.info "database")
[ Cmd.v (Cmd.info "init") (Term.const init) ]



let () = exit (Cmd.eval cmd)
31 changes: 31 additions & 0 deletions database/database.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "A short synopsis"
description: "A longer description"
maintainer: ["Maintainer Name"]
authors: ["Author Name"]
license: "LICENSE"
tags: ["topics" "to describe" "your" "project"]
homepage: "https://github.com/username/reponame"
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
"ocaml"
"dune" {>= "3.15"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/username/reponame.git"
26 changes: 26 additions & 0 deletions database/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(lang dune 3.15)

(name database)

(generate_opam_files true)

(source
(github username/reponame))

(authors "Author Name")

(maintainers "Maintainer Name")

(license LICENSE)

(documentation https://url/to/documentation)

(package
(name database)
(synopsis "A short synopsis")
(description "A longer description")
(depends ocaml dune)
(tags
(topics "to describe" your project)))

; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project
3 changes: 3 additions & 0 deletions database/lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name database)
(libraries cmdliner))
1 change: 1 addition & 0 deletions database/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dune runtest
3 changes: 3 additions & 0 deletions database/test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(test
(name test_database)
(libraries database))
2 changes: 2 additions & 0 deletions database/test/test_database.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

let () = exit 42
6 changes: 6 additions & 0 deletions diffFiles/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate
6 changes: 6 additions & 0 deletions hashFile/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate
6 changes: 6 additions & 0 deletions watcher/ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
bash test.sh
deactivate

0 comments on commit d753fb8

Please sign in to comment.