Skip to content

Commit

Permalink
* try as much as possible to build test artifacts under a single dir …
Browse files Browse the repository at this point in the history
…(can be improved later)

* simplify gitignore logic
  • Loading branch information
timotheecour committed Mar 27, 2020
1 parent a10691b commit 97e816a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 32 deletions.
26 changes: 16 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# ignore files wo extension (posix binaries)
*
!*.*
!*/


# Any path
*.swp
*~
Expand All @@ -7,15 +13,6 @@ nimcache/
/src/babel
/src/nimble

# executables from test and build
/nimble
src/nimblepkg/cli
src/nimblepkg/packageinfo
src/nimblepkg/packageparser
src/nimblepkg/reversedeps
src/nimblepkg/version
src/nimblepkg/download

# Windows executables
*.exe
*.dll
Expand All @@ -31,4 +28,13 @@ src/nimblepkg/download
*.orig

# Test procedure artifacts
nimble_*.nims
/buildTests

# executables from test and build (already gitignored but keeping for documentation)
# /nimble
# src/nimblepkg/cli
# src/nimblepkg/packageinfo
# src/nimblepkg/packageparser
# src/nimblepkg/reversedeps
# src/nimblepkg/version
# src/nimblepkg/download
31 changes: 9 additions & 22 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
tester
# ideally this shouldn't even be needed and all generated files would go under ../buildTests/

# tester
/nimble-test
/buildDir
/binaryPackage/v1/binaryPackage
/binaryPackage/v2/binaryPackage
/develop/dependent/src/dependent
/issue27/issue27
/issue206/issue/issue206bin
/issue289/issue289
/issue428/nimbleDir/
/nimbleDir/
/packageStructure/c/c
/packageStructure/y/y
/testCommand/testOverride/myTester
/testCommand/testsFail/tests/a
/testCommand/testsFail/tests/b
/testCommand/testsPass/tests/one
/testCommand/testsPass/tests/three
/testCommand/testsPass/tests/two
/nimscript/nimscript
/packageStructure/validBinary/y
/testCommand/testsFail/tests/t2
/passNimFlags/passNimFlags

# occurs on multiple levels
nimbleDir/

# generated nims files
*_*.nims
4 changes: 4 additions & 0 deletions tests/config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# this also doesn't work (even in nims): --outdir:"$nimcache/buildTests"
import os
let buildDir = currentSourcePath().parentDir.parentDir / "buildTests"
switch("outdir", buildDir)
Binary file removed tests/nimbleVersionDefine/src/nimbleVersionDefine
Binary file not shown.

0 comments on commit 97e816a

Please sign in to comment.