Finishing touches for travis build to succeed.

This commit is contained in:
Dominik Picheta 2015-12-30 01:32:00 +00:00
commit 8576776de7
3 changed files with 6 additions and 3 deletions

View file

@ -15,10 +15,9 @@ before_script:
- export PATH=`pwd`/Nim/bin:$PATH - export PATH=`pwd`/Nim/bin:$PATH
script: script:
- nim c src/nimble
- ./src/nimble install -y
- cd tests - cd tests
- nim c -r tester - nim c -r tester
- ./src/nimble install -y
notifications: notifications:
irc: "chat.freenode.net#nimbuild" irc: "chat.freenode.net#nimbuild"

View file

@ -1,4 +1,4 @@
# Nimble # Nimble [![Build Status](https://travis-ci.org/nim-lang/nimble.svg?branch=master)](https://travis-ci.org/nim-lang/nimble)
Nimble is a *beta*-grade *package manager* for the [Nim programming Nimble is a *beta*-grade *package manager* for the [Nim programming
language](http://nim-lang.org). language](http://nim-lang.org).

View file

@ -54,6 +54,10 @@ test "can refresh with custom urls":
let configBakFile = getConfigDir() / "nimble" / "nimble.ini.bak" let configBakFile = getConfigDir() / "nimble" / "nimble.ini.bak"
if fileExists(configFile): if fileExists(configFile):
moveFile(configFile, configBakFile) moveFile(configFile, configBakFile)
# Ensure config dir exists
createDir(getConfigDir() / "nimble")
writeFile(configFile, """ writeFile(configFile, """
[PackageList] [PackageList]
name = "official" name = "official"