From 72d23a2dd1e0dac0ebb0e065f93be3607223f4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Ill=C3=A9s?= Date: Sun, 20 Nov 2016 21:29:20 +0100 Subject: [PATCH] Use example.rs specific Cargo.toml file during CI --- _test/check-exercises.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_test/check-exercises.sh b/_test/check-exercises.sh index 949af96f2..68d082bde 100755 --- a/_test/check-exercises.sh +++ b/_test/check-exercises.sh @@ -28,6 +28,11 @@ for exercise in exercises/*/tests; do [ -d src ] || mkdir src cp example.rs src/lib.rs + # Overwrite empty Cargo.toml if an example specific file exists + if [ -f Cargo-example.toml ]; then + cp Cargo-example.toml Cargo.toml + fi + # Forcibly strip all "ignore" statements from the testing files for test in tests/*.rs; do sed -i '/\[ignore\]/d' $test