Skip to content

Commit

Permalink
Return test result in prep for CI
Browse files Browse the repository at this point in the history
Add .travis.yml though I probably won't end up using it since
travis-ci.org no longer runs.  Will look into free or cheap alternatives
long term.
  • Loading branch information
rswinkle committed Mar 21, 2023
1 parent 5b65553 commit 7a84bdf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: false
language: c++
compiler:
- gcc
- clang

#addons:
# apt:
# sources:
# packages:
# - package-name-dev


script:
- cd testing/
- make run_tests verbose=1
- ./run_tests


3 changes: 2 additions & 1 deletion testing/run_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ int main(int argc, char** argv)
}
}

// TODO output nothing except on failure?
if (!have_failure) {
puts("All tests passed");
}



return 0;
return have_failure;
}

int find_test(char* name)
Expand Down

0 comments on commit 7a84bdf

Please sign in to comment.