-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6197fe
commit 56f400e
Showing
4 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,8 @@ | |
emacs | ||
nodePackages_latest.nodejs | ||
nodePackages_latest.eask | ||
|
||
just | ||
]; | ||
in | ||
forAllSystems | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
set shell := ['nu', '-c'] | ||
|
||
build env="dev": | ||
cargo build {{ if env == "release" { "--release" } else { "" } }} | ||
cp ./target/{{ if env == "release" { "release" } else { "debug" } }}/libreel.so . | ||
eask install | ||
|
||
test: (build "dev") | ||
just test-setup | ||
-eask test buttercup | ||
just test-teardown | ||
|
||
dist: (build "release") | ||
eask package | ||
|
||
clean: | ||
cargo clean | ||
rm libreel.* | ||
|
||
[private] | ||
test-setup: | ||
#!/usr/bin/env nu | ||
print "preparing test environment" | ||
^docker run -d --rm --name reel-test -p 8080:80 kennethreitz/httpbin | ||
|
||
mut state = (^docker inspect reel-test | from json | first | get State.status) | ||
|
||
print $"state: ($state)" | ||
|
||
while $state != "running" { | ||
print "waiting..." | ||
$state = (^docker inspect reel-test | from json | first | get State.status) | ||
} | ||
|
||
sleep 1sec | ||
|
||
[private] | ||
test-teardown: | ||
#!/usr/bin/env nu | ||
print "tearing down" | ||
^docker stop reel-test |