mike-goodwin / owasp-threat-dragon

An open source, online threat modelling tool from OWASP
http://mike-goodwin.github.io/owasp-threat-dragon/
Apache License 2.0
483 stars 130 forks source link

Travis build is failing #120

Closed jgadsden closed 4 years ago

jgadsden commented 4 years ago

The travis build is failing with

sh: 0: Can't open /etc/init.d/xvfb
The command "sh -e /etc/init.d/xvfb start" failed and exited with 127 during 

so the file .travis.yml may need to be updated for this?

jgadsden commented 4 years ago

Hello @mike-goodwin , I tried this:

    packages:
      g++-4.8
+     xvfb
before_install:
-   "export DISPLAY=:99.0"
-   "sh -e /etc/init.d/xvfb start"
-   sleep 3 # give xvfb some time to start
+   export DISPLAY=':99.0'
+   Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

which got past the shell errors, but then tripped up because of not finding packages that have been commented out and added to test.js:

//require('angular-mocks');
//require('phantomjs-polyfill-find');