Andy Bavier | caeab6a | 2016-12-12 14:58:01 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
Andy Bavier | 392a40c | 2017-02-12 10:30:32 -0800 | [diff] [blame] | 5 | CORDDIR=~/cord |
Andy Bavier | fcf4e84 | 2017-06-27 17:55:10 -0400 | [diff] [blame] | 6 | VMDIR=/opt/cord/build/ |
Andy Bavier | caeab6a | 2016-12-12 14:58:01 -0500 | [diff] [blame] | 7 | CONFIG=config/cord_in_a_box.yml |
| 8 | SSHCONFIG=~/.ssh/config |
| 9 | |
| 10 | function run_e2e_test () { |
| 11 | cd $CORDDIR/build |
| 12 | |
| 13 | # User has been added to the lbvirtd group, but su $USER to be safe |
Andy Bavier | fcf4e84 | 2017-06-27 17:55:10 -0400 | [diff] [blame] | 14 | ssh corddev "cd $VMDIR; ./gradlew -PdeployConfig=$VMDIR/$CONFIG postDeployTests" |
Andy Bavier | caeab6a | 2016-12-12 14:58:01 -0500 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | run_e2e_test |
| 18 | |
| 19 | exit 0 |