Merge pull request #409 from efiop/master

travis: fixups
This commit is contained in:
Ruslan Kuprieiev
2018-01-11 00:33:46 +02:00
committed by GitHub
9 changed files with 39 additions and 2 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import re
import sys
from collections import defaultdict
from dvc.logger import Logger
@@ -65,7 +66,8 @@ class CmdShowWorkflow(CmdBase):
def branches_multimap(self):
git_cmd = ['git', 'show-ref', '--abbrev={}'.format(self.COMMIT_LEN)]
lines = Executor.exec_cmd_only_success(git_cmd).split('\n')
items_full = map(unicode.split, lines)
func = unicode.split if sys.version_info[0] < 3 else str.split
items_full = map(func, lines)
items = map(lambda it: (it[0], re.sub(r'^refs/heads/', '', it[1])), items_full)
result = defaultdict(list)
+8
View File
@@ -10,6 +10,14 @@ import filecmp
import math
from boto.s3.connection import S3Connection
try:
import httplib
except ImportError:
# Python3 workaround for ResumableDownloadHandler.
# See https://github.com/boto/boto/pull/3755.
import sys
import http.client as httplib
sys.modules['httplib'] = httplib
from boto.s3.resumable_download_handler import ResumableDownloadHandler
from google.cloud import storage as gc
+1 -1
View File
@@ -109,7 +109,7 @@ class Workflow(object):
g = nx.DiGraph(name='DVC Workflow', directed=False)
for hash in set(self._edges.keys() + self._back_edges.keys()):
for hash in set(list(self._edges.keys()) + list(self._back_edges.keys())):
commit = self._commits[hash]
g.add_node(hash,
+3
View File
@@ -1,5 +1,8 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" && \
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
"$TRAVIS_PULL_REQUEST" == "false" && \
+5
View File
@@ -1,3 +1,8 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
git config --local user.name 'Nightly Travis Builds'
git config --local user.email '<>'
+5
View File
@@ -1,3 +1,8 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pyenv install $PYTHON_VER
pyenv global $PYTHON_VER
+3
View File
@@ -1,5 +1,8 @@
#!/bin/bash
set -x
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" && \
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
"$TRAVIS_PULL_REQUEST" == "false" && \
+6
View File
@@ -1,3 +1,9 @@
#!/bin/bash
set -x
set -e
sudo apt-get install graphviz
pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
+5
View File
@@ -1,3 +1,8 @@
#!/bin/bash
set -x
set -e
./unittests.sh
./functests.sh