#!/bin/bash
CPC_HOST=depot@orval.galaxyproject.org
CPC_DIR=/srv/nginx/depot.galaxyproject.org/root/software

rsync -avr . $CPC_HOST:$CPC_DIR/

ssh $CPC_HOST "cd $CPC_DIR && sh upgrade.sh"
ssh $CPC_HOST "cd $CPC_DIR && python bin/process_urls.py urls.tsv > api-tcp.json"
ssh $CPC_HOST "cd $CPC_DIR && python bin/process_urls.py urls-bioblend.tsv > api-bioblend.json"
ssh $CPC_HOST "cd $CPC_DIR && python bin/merge_apis.py api-tcp.json tcp api-bioblend.json bioblend > api-bioblend.json"

rsync $CPC_HOST:$CPC_DIR/report.xml .

Move jenkins stuff into a source controlled file
Move jenkins stuff into a source controlled file
