Signed-off-by: Alex Lourie <alex@instaclustr.com>
@@ -29,11 +29,9 @@ go:
- "1.10"
install:
- - pip install --user cql PyYAML six
- - git clone https://github.com/pcmanus/ccm.git
- - pushd ccm
- - ./setup.py install --user
- - popd
+ - ./install_test_deps.sh $TRAVIS_REPO_SLUG
+ - cd ../..
+ - cd gocql/gocql
- go get .
script:
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+# This is not supposed to be an error-prone script; just a convenience.
+# Install CCM
+pip install --user cql PyYAML six
+git clone https://github.com/pcmanus/ccm.git
+pushd ccm
+./setup.py install --user
+popd
+if [ "$1" != "gocql/gocql" ]; then
+ USER=$(echo $1 | cut -f1 -d'/')
+ cd ../..
+ mv ${USER} gocql
+fi