Travis-CI:ALSA lib confmisc.c:768:(parse_card)找不到卡' 0'

时间:2017-07-29 11:01:55

标签: node.js linux ubuntu travis-ci alsa

我有一个开源项目,在其他功能旁边实现了一个应该被远程控制的媒体播放器。

源代码位于https://github.com/wzr1337/rsiServer

作为CI解决方案,我使用Travis-CI。遗憾的是,由于虚拟构建环境中ALSA层的问题,构建中断了:

Starting test suite "general Tests"
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
[../deps/mpg123/src/output/alsa.c:165] error: cannot open device default

我已经尝试了很多东西,但他们没有解决问题。我认为ALSA必须被告知要渲染成一个" null"卡,但如何为此正确配置travis?

我当前的配置是:

{
  "dist": "trusty",
  "sudo": "required",
  "language": "node_js",
  "node_js": "6",
  "addons": {
    "apt": {
      "sources": [
        "ubuntu-toolchain-r-test"
      ],
      "packages": [
        "gcc-6",
        "g++-6",
        "cmake"
      ]
    }
  },
  "env": "http_proxy=''",
  "git": {
    "submodules": false
  },
  "before_install": [
    "git submodule update --init",
    "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 modprobe snd-dummy",
    "sudo ln -s /usr/bin/gcc-6 /usr/local/bin/gcc",
    "sudo ln -s /usr/bin/g++-6 /usr/local/bin/g++",
    "export CC=/usr/bin/gcc-6",
    "export CXX=/usr/bin/g++-6",
    "gcc -v && g++ -v && cmake --version",
    "sudo apt-get install build-essential node-gyp",
    "npm install -g gulp@3.9.1"
  ],
  "install": [
    "npm install"
  ],
  "script": [
    "export AUDIODEV=null",
    "npm test"
  ],
  "global_env": "AUDIODEV=null",
  "group": "stable",
  "os": "linux"
}

可以在此处找到构建日志:https://travis-ci.org/wzr1337/rsiServer/jobs/258736222

您能帮我解决声卡/ ALSA问题吗?

由于

0 个答案:

没有答案