Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌹 Add Travis CI #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: node_js
sudo: required
node_js:
- '6'
- '4'
- '0.12'
- '0.10'
before_install:
- sudo usermod -a -G audio travis
- sudo apt-get install -y libasound2-dev alsa-utils alsa-oss

- echo 'pcm.!default {' > /home/travis/.asoundrc
- echo ' type hw' >> /home/travis/.asoundrc
- echo ' card 0' >> /home/travis/.asoundrc
- echo '}' >> /home/travis/.asoundrc
- echo '' >> /home/travis/.asoundrc
- echo 'ctl.!default {' >> /home/travis/.asoundrc
- echo ' type hw' >> /home/travis/.asoundrc
- echo ' card 0' >> /home/travis/.asoundrc
- echo '}' >> /home/travis/.asoundrc

- chmod go+r /home/travis/.asoundrc

- echo '# OSS/Free portion - card 1' | sudo tee -a /etc/modules.conf
- echo 'alias sound-slot-0 snd-card-0' | sudo tee -a /etc/modules.conf
- echo 'alias sound-service-0-0 snd-mixer-oss' | sudo tee -a /etc/modules.conf
- echo 'alias sound-service-0-1 snd-seq-oss' | sudo tee -a /etc/modules.conf
- echo 'alias sound-service-0-3 snd-pcm-oss' | sudo tee -a /etc/modules.conf
- echo 'alias sound-service-0-8 snd-seq-oss' | sudo tee -a /etc/modules.conf
- echo 'alias sound-service-0-12 snd-pcm-oss' | sudo tee -a /etc/modules.conf

- sudo modprobe snd-dummy
script:
- sudo $(which node) node_modules/.bin/_mocha
2 changes: 2 additions & 0 deletions impl/linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var defaultDevice = function(cb) {
if(err) {
cb(err);
} else {
console.log('DEFAULT DEVICE DATA', data)
var res = reDefaultDevice.exec(data);
if(res === null) {
cb(new Error('Alsa Mixer Error: failed to parse output'));
Expand All @@ -53,6 +54,7 @@ var getInfo = function (cb) {
if(err) {
cb(err);
} else {
console.log('GET INFO DATA', data)
var res = reInfo.exec(data);
if(res === null) {
cb(new Error('Alsa Mixer Error: failed to parse output'));
Expand Down