Created
June 17, 2016 17:06
-
-
Save marc0der/f9e8511797f1acaf153a5f51571bef0b to your computer and use it in GitHub Desktop.
Set up tmux to run two Gradle builds side by side in a pre-configured Docker containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bin/bash | |
SESSION="gradle" | |
tmux -2 new-session -d -s $SESSION | |
tmux new-window -t $SESSION:1 -n 'benchmark' | |
tmux split-window -v | |
tmux select-pane -t 0 | |
tmux send-keys "clear" C-m | |
tmux send-keys "docker run -it marc0der/gradle:1 zsh" C-m | |
tmux send-keys "sdk use gradle 2.12" C-m | |
tmux send-keys "cd /workspace/golo-lang" C-m | |
tmux send-keys "gradle --version" C-m | |
tmux send-keys "gradle clean test" C-m | |
tmux select-pane -t 1 | |
tmux send-keys "clear" C-m | |
tmux send-keys "docker run -v /usr/local/gradle-master:/gradle -it marc0der/gradle:1 zsh" C-m | |
tmux send-keys "sdk use gradle latest" C-m | |
tmux send-keys "cd /workspace/golo-lang" C-m | |
tmux send-keys "gradle --version" C-m | |
tmux send-keys "gradle clean test" C-m | |
tmux select-window -t $SESSION:1 | |
tmux -2 attach-session -t $SESSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment