Skip to content

Commit

Permalink
feat(ci): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Jan 1, 2024
1 parent b06a158 commit 0e63770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/dev.geopjr.Collision.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"cd lib/blake3/blake3c && make -f ../build/Makefile && cd ../../..",
"cd lib/gi-crystal && crystal build src/generator/main.cr && cd ../.. && mkdir ./bin && cp lib/gi-crystal/main ./bin/gi-crystal",
"./bin/gi-crystal",
"crystal spec -Dpreview_mt --order random || exit 1",
"COLLISION_LOCALE_LOCATION=\"/app/share/locale\" crystal build -Dpreview_mt ./src/collision.cr -Denable_gschema --release #--no-debug",
"msgfmt --xml --template data/dev.geopjr.Collision.metainfo.xml.in -d \"./po\" -o data/dev.geopjr.Collision.metainfo.xml",
"msgfmt --desktop --template data/dev.geopjr.Collision.desktop.in -d \"./po\" -o data/dev.geopjr.Collision.desktop",
Expand Down
2 changes: 1 addition & 1 deletion spec/hash_generator_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe Collision::Checksum do

safe_stop = Time.utc.to_unix_ms
loop do
break if Collision::CLIPBOARD_HASH.size == hashes.size || Time.utc.to_unix_ms - safe_stop > 3000
break if Collision::CLIPBOARD_HASH.size == hashes.size || Time.utc.to_unix_ms - safe_stop > Collision::CLIPBOARD_HASH.size * 1000
end

Collision::CLIPBOARD_HASH.each do |k, v|
Expand Down

0 comments on commit 0e63770

Please sign in to comment.