diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-02-09 12:31:04 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-02-13 11:06:15 +0100 |
| commit | d33fabdc783d5a997395a4f02bf96fce1affaf98 (patch) | |
| tree | 088e135a9d3a5626f470286cca7776311c8369d3 | |
| parent | 339fe63ad8e0bed7d31b5d872756ef229d280a12 (diff) | |
| download | mullvadvpn-d33fabdc783d5a997395a4f02bf96fce1affaf98.tar.xz mullvadvpn-d33fabdc783d5a997395a4f02bf96fce1affaf98.zip | |
Generate stub for windows-security
| -rw-r--r-- | .travis.yml | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 8e3f2e26e2..047c274817 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,15 @@ matrix: # FIXME: Flow throws error for optional dependencies # missing from node_modules on unsupported platforms # see: https://github.com/facebook/flow/issues/4171 - - NSEVENTMON_INDEX_JS=node_modules/nseventmonitor/index.js; - if [ ! -f $NSEVENTMON_INDEX_JS ]; then - echo "Installing a stub for NSEventMonitor.."; - mkdir -p `dirname $NSEVENTMON_INDEX_JS`; - echo "module.exports = {};" > $NSEVENTMON_INDEX_JS; - fi + - OPTIONAL_DEPS=('nseventmonitor' 'windows-security'); + for MODULE in ${OPTIONAL_DEPS[@]}; do + FILE="node_modules/$MODULE/index.js"; + if [ ! -f $FILE ]; then + echo "Installing a stub for $MODULE.."; + mkdir -p `dirname $FILE`; + echo "module.exports = {};" > $FILE; + fi + done before_script: &node_before_script - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start script: &node_script |
