File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 44  - " 3.5" 
55
66before_install :
7-   - ./build_etcd .sh v2.2.0  
7+   - ./download_etcd .sh 2.3.7  
88  - pip install --upgrade setuptools 
99
1010#  command to install dependencies
@@ -16,7 +16,7 @@ install:
1616
1717#  command to run tests
1818script :
19-   PATH=$PATH:./etcd/ bin coverage run --source=src/etcd --omit="src/etcd/tests/*" bin/test 
19+   PATH=$PATH:./bin coverage run --source=src/etcd --omit="src/etcd/tests/*" bin/test 
2020
2121after_success : coveralls 
2222#  Add env var to detect it during build
Original file line number Diff line number Diff line change 99
1010echo  " Using ETCD version $ETCD_VERSION " 
1111
12+ BASE=$PWD 
13+ mkdir -p gopath/src/coreos/
14+ export  GOPATH=$BASE /gopath/
15+ cd  $GOPATH /src/coreos
1216git clone https://github.com/coreos/etcd.git
1317cd  etcd
14- git checkout $ETCD_VERSION 
18+ git checkout -b buildout  $ETCD_VERSION 
1519./build
20+ cd  $BASE 
21+ cp -r $GOPATH /src/coreos/etcd/bin . 
1622
1723
1824${TRAVIS:? " This is not a Travis build. All Done"  } 
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ parts = python
55      coverage
66develop  = .
77eggs  = 
8-      urllib3 ==1.7 .1
9-      pyOpenSSL ==0.13.1 
8+      urllib3 ==1.19 .1
9+      pyOpenSSL ==16.2 
1010     ${deps:extraeggs}
1111
1212[python] 
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set  -e
3+ VERSION=${1:- 2.3.7} 
4+ mkdir -p bin
5+ URL=" https://github.com/coreos/etcd/releases/download/v${VERSION} /etcd-v${VERSION} -linux-amd64.tar.gz" 
6+ curl -L $URL  |  tar -C ./bin --strip-components=1 -xzvf - " etcd-v${VERSION} -linux-amd64/etcd" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments