Skip to content

Commit

Permalink
ci: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Nov 1, 2023
1 parent 7258760 commit 780683b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const test = async (src = ".") => {
])
.withExec([
"wget",
"https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.5.31/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz",
"https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.5.36/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz",
])
.withExec([
"tar",
Expand All @@ -93,12 +93,15 @@ export const test = async (src = ".") => {
"sqlite:///tmp/music-player.sqlite3"
)
.withEnvVariable("MUSIC_PLAYER_PORT", "5040")
.withExec(["cargo", "run", "--", "scan"])
.withExec(["cargo", "install", "--path", "."])
.withExec(["music-player", "scan"])
.withExec([
"sh",
"-c",
"cd server && cargo run & \
"cd server && cargo install --path . && music-player-server & \
sleep 3 && \
cd .. && \
rm -rf target/* && \
cargo llvm-cov --all-features --lib --workspace --lcov --output-path lcov.info",
]);

Expand Down

0 comments on commit 780683b

Please sign in to comment.