mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
test random config option every 10 CI builds
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca6acd1e24
commit
4738a9035c
2 changed files with 23 additions and 0 deletions
|
@ -19,6 +19,8 @@ build_script:
|
|||
|
||||
export PATH="/usr/lib/ccache/:$PATH"
|
||||
|
||||
python ./scripts/cicount.py
|
||||
|
||||
cmake . -Wno-dev -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON
|
||||
|
||||
make -j $(nproc || echo 1)
|
||||
|
|
21
scripts/cicount.py
Executable file
21
scripts/cicount.py
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os, sys
|
||||
|
||||
cicountfile = "/home/appveyor/.ccache/cicount"
|
||||
|
||||
cicount = 0
|
||||
try:
|
||||
with open(cicountfile, 'r') as f:
|
||||
cicontent = f.read()
|
||||
cicount = int(cicontent)
|
||||
except:
|
||||
cicount = 10
|
||||
|
||||
if cicount >= 10:
|
||||
import randconfig
|
||||
cicount = 0
|
||||
|
||||
cicount += 1
|
||||
with open(cicountfile, 'w') as f:
|
||||
f.write(str(cicount))
|
Loading…
Add table
Reference in a new issue