create .gitignore file with --init
This commit is contained in:
parent
2b3164ebb3
commit
d455ffc1bf
@ -27,6 +27,7 @@ createChallenge expectedDirectory spec = do
|
|||||||
D.createDirectoryIfMissing False testDirectory
|
D.createDirectoryIfMissing False testDirectory
|
||||||
createFile (testDirectory </> "in.tsv") $ testInContents metric
|
createFile (testDirectory </> "in.tsv") $ testInContents metric
|
||||||
createFile (testDirectory </> expectedFile) $ testExpectedContents metric
|
createFile (testDirectory </> expectedFile) $ testExpectedContents metric
|
||||||
|
createFile (expectedDirectory </> ".gitignore") $ gitignoreContents
|
||||||
where metric = gesMetric spec
|
where metric = gesMetric spec
|
||||||
testName = gesTestName spec
|
testName = gesTestName spec
|
||||||
trainDirectory = expectedDirectory </> "train"
|
trainDirectory = expectedDirectory </> "train"
|
||||||
@ -112,3 +113,6 @@ a ko te ahiahi , ko te ata , he ra kotahi
|
|||||||
testExpectedContents _ = [hereLit|0.11
|
testExpectedContents _ = [hereLit|0.11
|
||||||
17.2
|
17.2
|
||||||
|]
|
|]
|
||||||
|
|
||||||
|
gitignoreContents :: String
|
||||||
|
gitignoreContents = "*~\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user