Skip to content

Commit

Permalink
re-org our travis build components
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Sep 12, 2014
1 parent 74c1ab3 commit 85f5367
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,6 @@ before_install:
install:
- ./travis-tool.sh install_deps
before_script:
- sudo apt-get install protobuf-compiler
# Set up cassandra
- echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
- curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
- sudo apt-get update
- yes | sudo apt-get install -y --force-yes dsc20
- ./setup-project
script:
# Download spark 1.0.2
- "wget http://d3kbcqa49mib13.cloudfront.net/spark-1.0.2-bin-hadoop2.tgz"
- "tar -xvf spark-1.0.2-bin-hadoop2.tgz"
# Do our mini example first
- cd mini-complete-example
- ./sbt/sbt clean compile package assembly
- ./sbt/sbt clean
- echo $PWD && mvn clean && mvn compile && mvn package
- cd ..
# Run the tests
- "export SPARK_HOME=./spark-1.0.2-bin-hadoop2/"
- "export IAM=`whoami`"
- sudo pip install urllib3
- sudo mkdir -p /user/hive && sudo chown -R $IAM /user/hive
- ./sbt/sbt compile package assembly
- echo $?
- time ./run-all-examples
- echo $?
- echo "done"
# Try and build with maven, skip for now
#- mvn clean && mvn compile && mvn package
- ./build-project
15 changes: 15 additions & 0 deletions build-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Do our mini example first
cd mini-complete-example
./sbt/sbt clean compile package assembly
./sbt/sbt clean
echo $PWD && mvn clean && mvn compile && mvn package
cd ..
# Run the tests
export SPARK_HOME=./spark-1.0.2-bin-hadoop2/
./sbt/sbt compile package assembly
echo $?
time ./run-all-examples
echo $?
echo "done"
# Try and build with maven, skip for now
#mvn clean && mvn compile && mvn package
21 changes: 21 additions & 0 deletions setup-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#Download spark 1.0.2
echo "Setup spark"
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.0.2-bin-hadoop2.tgz
tar -xvf spark-1.0.2-bin-hadoop2.tgz
echo "Installing protobuf"
sudo apt-get install protobuf-compiler
echo $?
# Set up cassandra
echo "Setting up dsc (cassandra"
echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
sudo apt-get update
yes | sudo apt-get install -y --force-yes dsc20
echo $?
echo "install urllib3"
sudo pip install urllib3
echo "set up hive directories"
export IAM=`whoami`
sudo mkdir -p /user/hive && sudo chown -R $IAM /user/hive
echo "done with setup"
echo $?

0 comments on commit 85f5367

Please sign in to comment.