Travis CI ของฉันใช้ Ubuntu 14.04 และ Node.js 8 .travis.yml
ของฉันดูเหมือน:
language: node_js
node_js:
- 8
sudo: required
addons:
chrome: stable
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm set progress=false
- npm install
script:
- ng lint
- npm run test
- npm run e2e
- npm run build
ฉันพยายามอัปเดตให้ใช้ Ubuntu 16.04 และ Node.js 10 โดยเปลี่ยนเป็น:
language: node_js
node_js:
- '10'
dist: xenial
sudo: required
addons:
chrome: stable
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm set progress=false
- npm install
script:
- ng lint
- npm run test
- npm run e2e
- npm run build
อย่างไรก็ตาม ตอนนี้ฉันได้รับข้อผิดพลาดเมื่อพยายามเริ่ม xvfb
:
0.00s$ sh -e /etc/init.d/xvfb เริ่มต้น
sh: 0: ไม่สามารถเปิด /etc/init.d/xvfb
คำสั่ง sh -e /etc/init.d/xvfb start ล้มเหลวและออกด้วย 127 ในระหว่าง .