Commit fb42a22e2fedeca8a5d0fa4a32653285374e689d

Carlos Martín Nieto 2013-04-29T02:15:51

travis: test push Create a test repository in the VM and set up git-daemon so we can use it to test the push code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/.travis.yml b/.travis.yml
index ad1172d..0d5746f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,6 +25,10 @@ install:
 
 # Run the Build script
 script:
+ - mkdir _temp
+ - git init --bare _temp/test.git
+ - git daemon --listen=localhost --export-all --enable=receive-pack --base-path=_temp _temp 2>/dev/null &
+ - export GITTEST_REMOTE_URL="git://localhost/test.git"
  - mkdir _build
  - cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS