# Can't set defaultJuceModulePath in Travis CI

**URL:** <https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260>\
**Category:** The Projucer\
**Created:** [September 3, 2018, 7:23pm UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260 "2018-09-03T19:23:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobante](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tobante/32/9644_2.png) [@tobante](https://forum.juce.com/u/tobante)\
**Post date:** [September 3, 2018, 7:23pm UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260/1 "2018-09-03T19:23:15Z")

</div>

# Travis CI Projucer problem

I’m trying to set up Travis CI for my open source JUCE project. I can already successfully compile the Projucer but when I’m trying to set the global paths with:

```auto
$PROJUCER --set-global-search-path osx defaultJuceModulePath $TRAVIS_BUILD_DIR/JUCE/modules

```

I get the following error:

```auto
Projucer 5.3.2 --- Build date: Sep 3 2018
Log started: 3 Sep 2018 6:15:55pm
Mac OSX 10.13.3
CPU: 2574MHz Cores: 2 4096MB
/Users/travis/.travis/job_stages: line 78: 2584 Segmentation fault: 11 $PROJUCER --set-global-search-path osx defaultJuceModulePath $TRAVIS_BUILD_DIR/JUCE/modules
The command "$PROJUCER --set-global-search-path osx defaultJuceModulePath $TRAVIS_BUILD_DIR/JUCE/modules" exited with 139.

```

I’m building the Projucer in GPL mode and **_$TRAVIS\_BUILD\_DIR/JUCE/modules_** is a valid directory

Also when trying to set the vst-sdk path with the command above, the Projucer tells me vst3path is not a valid option for macOS. Both on Travis and my MacBook Pro

Here is the [.travis.yml](https://github.com/tobanteAudio/modEQ/blob/master/.travis.yml) file from the repo.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [September 4, 2018, 8:02am UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260/2 "2018-09-04T08:02:31Z")

</div>

Are you able to set paths that don’t include `$TRAVIS_BUILD_DIR`?

---

<div class="post-metadata">

**Author:** ![tobante](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tobante/32/9644_2.png) [@tobante](https://forum.juce.com/u/tobante)\
**Post date:** [September 4, 2018, 10:55am UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260/3 "2018-09-04T10:55:17Z")

</div>

That depends. On my desktop and laptop (linux, macOS), I’m able to set the global module path with a full path and a path that includes an environment variable. Since the Projucer only accepts valid folders (folder containing modules) and I only have one valid modules folder in travis ci, the one under `$TRAVIS_BUILD_DIR/JUCE/modules` I can’t test any other paths

---

<div class="post-metadata">

**Author:** ![jimc](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jimc/32/16067_2.png) [@jimc](https://forum.juce.com/u/jimc)\
**Post date:** [September 4, 2018, 12:13pm UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260/4 "2018-09-04T12:13:26Z")

</div>

I know this isn’t what you are asking, but the way we do this is to have everything we need as a git submodule of the main project and don’t use any global files. That we we are guaranteed to get the right version of JUCE etc. when we hit build on the server…

---

<div class="post-metadata">

**Author:** ![tobante](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tobante/32/9644_2.png) [@tobante](https://forum.juce.com/u/tobante)\
**Post date:** [September 4, 2018, 12:34pm UTC](https://forum.juce.com/t/cant-set-defaultjucemodulepath-in-travis-ci/29260/5 "2018-09-04T12:34:56Z")

</div>

That’s probably the way to go. For now I changed my project to include the JuceLibraryCode folder which has local copies of all modules, it works but it’s not elegant. I think i’ll switch to your method
