Skip to content

Commit

Permalink
Updating travis-ci infrastructure to run SuperCollider for tests.
Browse files Browse the repository at this point in the history
installing audio stuff, specifying node version in nvmrc

hoping this will print the available devices

installing jack would help

sudo

sudo

list backends with help

jackd

jackd

start jackd in background

no-realtime
  • Loading branch information
colinsullivan committed Nov 16, 2019
1 parent aa72dec commit b978b4a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.12.0
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
dist: xenial
language: node_js
node_js:
- node
before_install:
- $TRAVIS_BUILD_DIR/.travis/install_system_audio.sh
- sudo bash $TRAVIS_BUILD_DIR/.travis/prep-dummy-soundcard.sh
- $TRAVIS_BUILD_DIR/.travis/start_jackd_dummy.sh
- $TRAVIS_BUILD_DIR/.travis/install_supercollider.sh
- $TRAVIS_BUILD_DIR/.travis/install_supercolliderjs_config.sh
- $TRAVIS_BUILD_DIR/.travis/install_quark.sh
cache:
directories:
- $HOME/supercollider
- $HOME/sc3-plugins
env:
global:
AUDIODEV=null
7 changes: 7 additions & 0 deletions .travis/install_system_audio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

sudo apt-get update -qq
sudo usermod -a -G audio travis
sudo apt-get install -y portaudio19-dev
sudo apt-get install -y libasound2-dev alsa-utils alsa-oss
sudo apt-get install -y jack-tools
24 changes: 24 additions & 0 deletions .travis/prep-dummy-soundcard.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cat << EOF > /home/travis/.asoundrc
pcm.dummy {
type hw
card 0
}
ctl.dummy {
type hw
card 0
}
EOF
chmod go+r /home/travis/.asoundrc
cat << EOF >> /etc/modules.conf
# OSS/Free portion - card #1
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
EOF
modprobe snd-dummy
# ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss
mkdir -p tmp && chmod 777 tmp
3 changes: 3 additions & 0 deletions .travis/start_jackd_dummy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

jackd --no-realtime -d dummy &

0 comments on commit b978b4a

Please sign in to comment.