Skip to content

Commit

Permalink
macOS CI (#31)
Browse files Browse the repository at this point in the history
* BloomFilter.hpp: change uint64_t to size_t

* azure: add macOS test

* azure: install automake

* Revert "BloomFilter.hpp: change uint64_t to size_t"

This reverts commit 7abb6ca.

* BloomFilterTests.cpp: execute memory leak test on linux only
  • Loading branch information
jwcodee authored Aug 9, 2019
1 parent 1785550 commit cf4df47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Tests/AdHoc/BloomFilterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ main()

cout << "premade bf tests done" << endl;

#if __linux__

// memory leak tests
BloomFilter* filter3 = new BloomFilter(filterSize, 5, 20);

Expand All @@ -138,6 +140,8 @@ main()
cout << "memory leak prevention tests done" << endl;
cout << memory_usage() - memUsage << "kb" << endl;

#endif

remove(filename.c_str());

// //check parallelized code speed
Expand Down
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- job: linux_clang6
pool:
vmImage: Ubuntu 16.04
vmImage: "Ubuntu 16.04"
steps:
- script: sudo apt-get install -qq clang-6.0
displayName: Install clang-6.0
Expand All @@ -29,3 +29,17 @@ jobs:
./configure CC=clang-6.0 CXX=clang++-6.0
make distcheck
displayName: "Compile btl_bloomfilter with clang 6.0"
- job: macOS_gcc_default
pool:
vmImage: macOS-10.14
steps:
- script: |
brew update
brew install automake
displayName: Install automake
- script: |
./autogen.sh
./configure
make distcheck
displayName: "Compile btl_bloomfilter with default gcc"

0 comments on commit cf4df47

Please sign in to comment.