create .gitignore file with --init

This commit is contained in:
Filip Gralinski 2015-08-25 22:18:51 +02:00 committed by Filip Gralinski
parent 2b3164ebb3
commit d455ffc1bf

View File

@ -27,6 +27,7 @@ createChallenge expectedDirectory spec = do
D.createDirectoryIfMissing False testDirectory
createFile (testDirectory </> "in.tsv") $ testInContents metric
createFile (testDirectory </> expectedFile) $ testExpectedContents metric
createFile (expectedDirectory </> ".gitignore") $ gitignoreContents
where metric = gesMetric spec
testName = gesTestName spec
trainDirectory = expectedDirectory </> "train"
@ -112,3 +113,6 @@ a ko te ahiahi , ko te ata , he ra kotahi
testExpectedContents _ = [hereLit|0.11
17.2
|]
gitignoreContents :: String
gitignoreContents = "*~\n"