Skip to content

Commit

Permalink
create test playbook, vars for all roles
Browse files Browse the repository at this point in the history
  • Loading branch information
cleary committed Sep 24, 2024
1 parent 31e59ca commit 05f22a9
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 43 deletions.
25 changes: 25 additions & 0 deletions .test_tidal_all_roles.play.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
- hosts: all

pre_tasks:
- stat:
path: vars/.test_vars_all.yml
register: vars_all
tags:
- config

- include_vars: vars/.test_vars_all.yml
when: vars_all.stat.exists
tags:
- config

roles:
- roles/meta
- roles/tidal
- roles/neovim
- roles/emacs
- roles/pulsar
- roles/text_management
- roles/vim
- roles/vscode

44 changes: 1 addition & 43 deletions vagrant/Vagrantfile.debian11_64
Original file line number Diff line number Diff line change
Expand Up @@ -69,48 +69,6 @@ Vagrant.configure("2") do |config|
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal.play.yml
SHELL

config.vm.provision "pulsar", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_pulsar.play.yml
SHELL

config.vm.provision "emacs", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_emacs.play.yml
SHELL

config.vm.provision "neovim", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_neovim.play.yml
SHELL

config.vm.provision "text_management", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_textmanagement.play.yml
SHELL

config.vm.provision "vim", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_vim.play.yml
SHELL

config.vm.provision "vscode", type:'shell', inline: <<-SHELL
apt-get update && apt-get install -y git ansible
[ -d ${HOME}/ansible-tidalcycles ] || git clone --recurse-submodules https://github.com/cleary/ansible-tidalcycles.git
cd ansible-tidalcycles/
ansible-playbook --connection=local -i localhost, tidal_vscode.play.yml
ansible-playbook --connection=local -i localhost, .test_tidal_all_roles.play.yml
SHELL
end
56 changes: 56 additions & 0 deletions vars/.test_vars_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Test file for automated github workflow testing only

# list of samples paths
# loaded in:
# * supercollider startup.scd
# * vscode/pulsar tidalcycles extension sample browser
#custom_sample_paths:
# - "/home/user/foo/"
# - "/home/user/bar/"

# source samples from git repositories
# Individual samples keep the audio files in the top directory of the repository
git_sample_individuals:
- { livecode_name: flbass, git_url: "https://github.com/cleary/samples-flbass.git" }
- { livecode_name: cbow, git_url: "https://github.com/cleary/samples-cello-bowed.git" }
- { livecode_name: cpluck, git_url: "https://github.com/cleary/samples-cello-plucked.git" }
- { livecode_name: uku, git_url: "https://github.com/thgrund/samples-ukulele.git" }
- { livecode_name: eride, git_url: "https://github.com/abalone1969/eRide.git" }
- { livecode_name: ebongos, git_url: "https://github.com/abalone1969/ebongos.git" }

# Sample sets have the audio files contained in multiple subdirs of the repository
git_sample_sets:
- https://github.com/lwlsn/Misc_Samples.git
- https://github.com/yaxu/dirt-jv1080.git
- https://github.com/yaxu/dirt-impulse.git
- https://github.com/dktr0/estuary-samples.git
- https://github.com/dktr0/supercontinent.git
- https://github.com/dktr0/cybernetic-samples.git
- https://github.com/cleary/samples-hydrogen-drums

# modify common supercollider startup.scd defaults
# for complete list of available defaults check:
# roles/tidal/defaults/main.yml
# roles/tidal/templates/startup.scd.template
#
# uncomment to modify the number of supercollider outputs (hardware/DAW etc)
# note: superdirt orbit assignment is auto-calculated, ref https://tidalcycles.org/Separate_audio_outputs
sc_option_numOutputBusChannels: 2

# connect midi client(s) to send patterns *from tidal* (hardware, software synths/plugins etc)
# see: https://tidalcycles.org/SuperDirt_MIDI_Tutorial
# In SuperCollider get the output of:
# MIDIClient.init;
# Which will return a series Sources and Destinations in the following format:
# MIDIEndPoint("full_name", "port_name")
# livecode_name is the name you'd like to use to refer to this midi device in your tidal code
# latency is optional, and defaults to 0
#
custom_midi_clients:
- { livecode_name: midi0, full_name: Midi Through, port_name: Midi Through Port-0, latency: 0 }
# - { livecode_name: midi1, full_name: Focusrite USB MIDI, port_name: Focusrite USB MIDI }

# install and configure various ugens, currently supported:
# * mutable-instruments (ref https://github.com/v7b1/mi-UGens)
sc_ugens:
- "mutable-instruments"

0 comments on commit 05f22a9

Please sign in to comment.