Documentation ¶
Index ¶
- Constants
- func ArchiveFiles(targetFileName string, targetDir string, sourceDir string, files []string, ...) (string, error)
- func ArchiveNodeModules(targetDir string, sourceDir string, matcher sauceignore.Matcher, ...) (string, error)
- func ArchiveRunnerConfig(project interface{}, tempDir string) (string, error)
Constants ¶
View Source
const ArchiveFileCountSoftLimit = 32768
ArchiveFileCountSoftLimit is the threshold count of files added to the archive before a warning is printed. The value here (2^15) is somewhat arbitrary. In testing, ~32K files in the archive resulted in about 30s for download and extraction.
Variables ¶
This section is empty.
Functions ¶
func ArchiveFiles ¶
func ArchiveFiles(targetFileName string, targetDir string, sourceDir string, files []string, matcher sauceignore.Matcher) (string, error)
ArchiveFiles walks through sourceDir, collects specified files, compresses them into target dir and returns the zip file path.
func ArchiveNodeModules ¶
func ArchiveNodeModules(targetDir string, sourceDir string, matcher sauceignore.Matcher, dependencies []string) (string, error)
ArchiveNodeModules collects npm dependencies from sourceDir and compresses them into targetDir.
func ArchiveRunnerConfig ¶
ArchiveRunnerConfig compresses runner config into `config.zip`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.