Travis CI need help (SOLVED)

I am trying use Travis CI to build bundles throw bob.But i have a lot of errors. The problem that lua modules can’t find
another module. What i am doing wrong?

language: python
sudo: false
addons:
  artifacts:
    paths:
    - bundles
  apt:
    packages:
      - oracle-java8-set-default

env:
  - LUA="lua 5.1"

before_install:
  - pip install hererocks
  - hererocks env --$LUA -rlatest 
  - source env/bin/activate 
  - wget http://d.defold.com/archive/8e1d5f8a8a0e1734c9e873ec72b56bea53f25d87/bob/bob.jar -O /tmp/bob.jar 

install:
  - luarocks install luacheck
  - luarocks install luacov
  - luarocks install luacov-coveralls
  - luarocks install stdlib
  
before_script:
 - mkdir bundles
  

script:
  - lua -v
  - java -jar /tmp/bob.jar  -build-report-html bundles/report.html resolve distclean build
  - ls -ll
  - ls -ll build
  - ls -ll build/default
  - java -jar /tmp/bob.jar  --platform x86-win32 --bundle-output bundles bundle 
  - ls -ll bundles
  - ls -ll "bundles/My project"
  

after_success:
  - luacov-coveralls -e $TRAVIS_BUILD_DIR/lua_install
  

but i get a lot of errors.

0.97s$ pip install hererocks

Collecting hererocks

  Downloading hererocks-0.14.0.tar.gz

Installing collected packages: hererocks

  Running setup.py install for hererocks

    Installing hererocks script to /home/travis/virtualenv/python2.7.9/bin

Successfully installed hererocks-0.14.0

before_install.2

6.93s$ hererocks env --$LUA -rlatest

Fetching Lua from http://www.lua.org/ftp/lua-5.1.5.tar.gz

Verifying SHA256 checksum

Building Lua 5.1.5

Skipping 1 patch, use --patch to apply it

Installing Lua 5.1.5

Fetching LuaRocks from http://luarocks.github.io/luarocks/releases/luarocks-2.4.2.tar.gz

Verifying SHA256 checksum

Building LuaRocks 2.4.2

Installing LuaRocks 2.4.2

Done.

before_install.3

0.00s$ source env/bin/activate

before_install.4

6.89s$ wget http://d.defold.com/archive/8e1d5f8a8a0e1734c9e873ec72b56bea53f25d87/bob/bob.jar -O /tmp/bob.jar

--2017-02-17 20:44:32--  http://d.defold.com/archive/8e1d5f8a8a0e1734c9e873ec72b56bea53f25d87/bob/bob.jar

Resolving d.defold.com (d.defold.com)... 52.85.133.168, 52.85.133.209, 52.85.133.231, ...

Connecting to d.defold.com (d.defold.com)|52.85.133.168|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 164072100 (156M) [application/java-archive]

Saving to: `/tmp/bob.jar'

100%[======================================>] 164,072,100 25.4M/s   in 6.8s    

2017-02-17 20:44:39 (23.0 MB/s) - `/tmp/bob.jar' saved [164072100/164072100]

install.1

3.03s$ luarocks install luacheck

Installing https://luarocks.org/luacheck-0.18.0-1.src.rock

Missing dependencies for luacheck 0.18.0-1:

   luafilesystem >= 1.6.3 (not installed)

luacheck 0.18.0-1 depends on luafilesystem >= 1.6.3 (not installed)

Installing https://luarocks.org/luafilesystem-1.6.3-2.src.rock

gcc -O2 -fPIC -I/home/travis/build/d954mas/odyssey/env/include -c src/lfs.c -o src/lfs.o

gcc -shared -o lfs.so -L/home/travis/build/d954mas/odyssey/env/lib src/lfs.o

No existing manifest. Attempting to rebuild...

luafilesystem 1.6.3-2 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

luacheck 0.18.0-1 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT <http://opensource.org/licenses/MIT>)

install.2

1.62s$ luarocks install luacov

Installing https://luarocks.org/luacov-0.12.0-1.src.rock

luacov 0.12.0-1 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

install.3

2.51s$ luarocks install luacov-coveralls

Installing https://luarocks.org/luacov-coveralls-0.2.1-1.src.rock

Missing dependencies for luacov-coveralls 0.2.1-1:

   dkjson (not installed)

   lua-path (not installed)

luacov-coveralls 0.2.1-1 depends on dkjson (not installed)

Installing https://luarocks.org/dkjson-2.5-2.src.rock

dkjson 2.5-2 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

luacov-coveralls 0.2.1-1 depends on lua-path (not installed)

Installing https://luarocks.org/lua-path-0.3.0-2.src.rock

lua-path 0.3.0-2 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

luacov-coveralls 0.2.1-1 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

install.4

1.71s$ luarocks install stdlib

Installing https://luarocks.org/stdlib-41.2.0-1.src.rock

stdlib 41.2.0-1 is now installed in /home/travis/build/d954mas/odyssey/env (license: MIT/X11)

before_script

0.01s$ mkdir bundles

0.01s$ lua -v

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

The command "lua -v" exited with 0.

2.55s$ java -jar /tmp/bob.jar  -build-report-html bundles/report.html resolve distclean build

100%

The build failed for the following reasons:

ERROR env/lib/luarocks/rocks/luafilesystem/1.6.3-2/tests/test.lua:0 the module '/lfs.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/examples/walk_empty_dirs.lua:0 the module '/path.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/examples/walk_old_files.lua:0 the module '/path.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/each_perf.lua:0 the module '/path/win32/fs.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/report_coverage.lua:0 the module '/luacov/reporter/coveralls.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/run.lua:0 the module '/lfs.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/test.lua:0 the module '/lunit.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/test_each.lua:0 the module '/lunit.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/test_fs.lua:0 the module '/lunit.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/test_lfs.lua:0 the module '/path/syscall/fs.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/test_wcs.lua:0 the module '/lunit.lua' can't be found

ERROR env/lib/luarocks/rocks/lua-path/0.3.0-2/test/utils.lua:0 the module '/lunit.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/unix/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/unix.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/win32/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/win32.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/lua.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/persist.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/list.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/require.lua:0 the module '/luarocks/loader.lua' can't be found

ERROR env/share/lua/5.1/luarocks/repos.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/make_manifest.lua:0 the module '/luarocks/manif.lua' can't be found

ERROR env/share/lua/5.1/luarocks/command_line.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/config_cmd.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/install.lua:0 the module '/luarocks/path.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/command.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/cmake.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/make.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/builtin.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/cvs.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/sscm.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/svn.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_file.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_http.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_http.lua:0 the module '/luarocks/fetch/hg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_https.lua:0 the module '/luarocks/fetch/hg_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_ssh.lua:0 the module '/luarocks/fetch/hg_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_https.lua:0 the module '/luarocks/fetch/git_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_ssh.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/patch.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/zip.lua:0 the module '/zlib.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/tar.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/pack.lua:0 the module '/luarocks/path.lua' can't be found

ERROR env/share/lua/5.1/luarocks/type_check.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/make.lua:0 the module '/luarocks/build.lua' can't be found

ERROR env/share/lua/5.1/luarocks/remove.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/manif.lua:0 the module '/luarocks/manif_core.lua' can't be found

ERROR env/share/lua/5.1/luarocks/add.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/deps.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build.lua:0 the module '/luarocks/pack.lua' can't be found

ERROR env/share/lua/5.1/luarocks/search.lua:0 the module '/luarocks/dir.lua' can't be found

ERROR env/share/lua/5.1/luarocks/show.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/manif_core.lua:0 the module '/luarocks/persist.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/unpack.lua:0 the module '/luarocks/fetch.lua' can't be found

ERROR env/share/lua/5.1/luarocks/validate.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/cfg.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/download.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/help.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/util.lua:0 the module '/debug.lua' can't be found

ERROR env/share/lua/5.1/luarocks/index.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/cache.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/refresh_cache.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/loader.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/admin_remove.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/new_version.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/lint.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/purge.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/path.lua:0 the module '/luarocks/dir.lua' can't be found

ERROR env/share/lua/5.1/luarocks/path_cmd.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/write_rockspec.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/doc.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/upload.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/upload/api.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luacheck/init.lua:0 the module '/luacheck/check.lua' can't be found

ERROR env/share/lua/5.1/luacheck/analyze.lua:0 the module '/luacheck/core_utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/lexer.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/version.lua:0 the module '/luacheck.lua' can't be found

ERROR env/share/lua/5.1/luacheck/options.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/expand_rockspec.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/linearize.lua:0 the module '/luacheck/lexer.lua' can't be found

ERROR env/share/lua/5.1/luacheck/globbing.lua:0 the module '/luacheck/fs.lua' can't be found

ERROR env/share/lua/5.1/luacheck/cache.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/whitespace.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/detect_globals.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/fs.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/parser.lua:0 the module '/luacheck/lexer.lua' can't be found

ERROR env/share/lua/5.1/luacheck/format.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/filter.lua:0 the module '/luacheck/inline_options.lua' can't be found

ERROR env/share/lua/5.1/luacheck/check.lua:0 the module '/luacheck/parser.lua' can't be found

ERROR env/share/lua/5.1/luacheck/reachability.lua:0 the module '/luacheck/core_utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/main.lua:0 the module '/luacheck.lua' can't be found

ERROR env/share/lua/5.1/luacheck/multithreading.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/inline_options.lua:0 the module '/luacheck/options.lua' can't be found

ERROR env/share/lua/5.1/luacheck/stds.lua:0 the module '/luacheck/utils.lua' can't be found

ERROR env/share/lua/5.1/luacheck/config.lua:0 the module '/luacheck/options.lua' can't be found

ERROR env/share/lua/5.1/luacov.lua:0 the module '/luacov/runner.lua' can't be found

ERROR env/share/lua/5.1/luacov/reporter.lua:0 the module '/luacov/runner.lua' can't be found

ERROR env/share/lua/5.1/luacov/reporter/default.lua:0 the module '/luacov/reporter.lua' can't be found

ERROR env/share/lua/5.1/luacov/reporter/coveralls.lua:0 the module '/luacov/reporter.lua' can't be found

ERROR env/share/lua/5.1/luacov/tick.lua:0 the module '/luacov/runner.lua' can't be found

ERROR env/share/lua/5.1/luacov/runner.lua:0 the module '/luacov/stats.lua' can't be found

ERROR env/share/lua/5.1/luacov/coveralls/repo/git.lua:0 the module '/luacov/coveralls/utils.lua' can't be found

ERROR env/share/lua/5.1/luacov/coveralls/repo/appveyor.lua:0 the module '/luacov/coveralls/repo/git.lua' can't be found

ERROR env/share/lua/5.1/luacov/coveralls/utils.lua:0 the module '/path.lua' can't be found

ERROR env/share/lua/5.1/luacov/coveralls/CiRepo.lua:0 the module '/luacov/coveralls/repo/git.lua' can't be found

ERROR env/share/lua/5.1/dkjson.lua:0 the module '/lpeg.lua' can't be found

ERROR env/share/lua/5.1/path.lua:0 the module '/package.lua' can't be found

ERROR env/share/lua/5.1/path/fs.lua:0 the module '/path/syscall/fs.lua' can't be found

ERROR env/share/lua/5.1/path/findfile.lua:0 the module '/string.lua' can't be found

ERROR env/share/lua/5.1/path/win32/ffi/types.lua:0 the module '/ffi.lua' can't be found

ERROR env/share/lua/5.1/path/win32/ffi/wcs.lua:0 the module '/ffi.lua' can't be found

ERROR env/share/lua/5.1/path/win32/ffi/fs.lua:0 the module '/ffi.lua' can't be found

ERROR env/share/lua/5.1/path/win32/wcs.lua:0 the module '/path/win32/" // type //"/wcs.lua' can't be found

ERROR env/share/lua/5.1/path/win32/alien/types.lua:0 the module '/alien.lua' can't be found

ERROR env/share/lua/5.1/path/win32/alien/utils.lua:0 the module '/alien.lua' can't be found

ERROR env/share/lua/5.1/path/win32/alien/wcs.lua:0 the module '/alien.lua' can't be found

ERROR env/share/lua/5.1/path/win32/alien/fs.lua:0 the module '/alien.lua' can't be found

ERROR env/share/lua/5.1/path/syscall/fs.lua:0 the module '/syscall/lfs.lua' can't be found

ERROR env/share/lua/5.1/path/lfs/fs.lua:0 the module '/lfs.lua' can't be found

ERROR env/share/lua/5.1/path/lfs/impl/fs.lua:0 the module '/os.lua' can't be found

ERROR env/share/lua/5.1/std.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/object.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/list.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/optparse.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/math.lua:0 the module '/std/math.lua' can't be found

ERROR env/share/lua/5.1/std/debug.lua:0 the module '/std/debug.lua' can't be found

ERROR env/share/lua/5.1/std/functional.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/strbuf.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/table.lua:0 the module '/std/table.lua' can't be found

ERROR env/share/lua/5.1/std/io.lua:0 the module '/std/io.lua' can't be found

ERROR env/share/lua/5.1/std/container.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/package.lua:0 the module '/std/package.lua' can't be found

ERROR env/share/lua/5.1/std/tree.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/string.lua:0 the module '/std/string.lua' can't be found

ERROR env/share/lua/5.1/std/set.lua:0 the module '/std/base.lua' can't be found

ERROR env/share/lua/5.1/std/operator.lua:0 the module '/std/base.lua' can't be found

The command "java -jar /tmp/bob.jar  -build-report-html bundles/report.html resolve distclean build" exited with 1.

0.01s[0K$ ls -ll

total 4

drwxr-xr-x 3 travis travis  20 Feb 17 20:44 build

drwxr-xr-x 2 travis travis  24 Feb 17 20:44 bundles

drwxr-xr-x 7 travis travis  87 Feb 17 20:44 env

drwxr-xr-x 2 travis travis  47 Feb 17 20:43 fonts

-rw-r--r-- 1 travis travis 286 Feb 17 20:43 game.project

drwxr-xr-x 6 travis travis  73 Feb 17 20:43 gui

drwxr-xr-x 2 travis travis  31 Feb 17 20:43 input

drwxr-xr-x 2 travis travis  90 Feb 17 20:43 logic

drwxr-xr-x 3 travis travis  40 Feb 17 20:43 main

drwxr-xr-x 2 travis travis  45 Feb 17 20:43 render

drwxr-xr-x 5 travis travis 122 Feb 17 20:43 stageUI

drwxr-xr-x 3 travis travis  38 Feb 17 20:43 utils

The command "ls -ll" exited with 0.

0.01s$ ls -ll build

total 4

drwxr-xr-x 12 travis travis 4096 Feb 17 20:44 default

The command "ls -ll build" exited with 0.

0.01s$ ls -ll build/default

total 52

drwxr-xr-x 8 travis travis    88 Feb 17 20:44 builtins

-rw-r--r-- 1 travis travis 19531 Feb 17 20:44 digest_cache

drwxr-xr-x 6 travis travis    48 Feb 17 20:44 env

drwxr-xr-x 2 travis travis    23 Feb 17 20:44 fonts

drwxr-xr-x 6 travis travis    73 Feb 17 20:44 gui

drwxr-xr-x 2 travis travis    32 Feb 17 20:44 input

drwxr-xr-x 2 travis travis    95 Feb 17 20:44 logic

drwxr-xr-x 3 travis travis    67 Feb 17 20:44 main

drwxr-xr-x 2 travis travis    47 Feb 17 20:44 render

drwxr-xr-x 5 travis travis   150 Feb 17 20:44 stageUI

-rw-r--r-- 1 travis travis 29685 Feb 17 20:44 state

drwxr-xr-x 3 travis travis    39 Feb 17 20:44 utils

The command "ls -ll build/default" exited with 0.

1.63s$ java -jar /tmp/bob.jar  --platform x86-win32 --bundle-output bundles bundle

Exception in thread "main" com.dynamo.bob.CompileExceptionError: Source '/home/travis/build/d954mas/odyssey/build/default/game.projectc' does not exist

	at com.dynamo.bob.Project.build(Project.java:337)

	at com.dynamo.bob.Bob.main(Bob.java:294)

Caused by: java.io.FileNotFoundException: Source '/home/travis/build/d954mas/odyssey/build/default/game.projectc' does not exist

	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1074)

	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)

	at com.dynamo.bob.bundle.Win32Bundler.bundleApplicationForPlatform(Win32Bundler.java:45)

	at com.dynamo.bob.bundle.Win32Bundler.bundleApplication(Win32Bundler.java:24)

	at com.dynamo.bob.Project.bundle(Project.java:477)

	at com.dynamo.bob.Project.doBuild(Project.java:626)

	at com.dynamo.bob.Project.build(Project.java:329)

	... 1 more

The command "java -jar /tmp/bob.jar  --platform x86-win32 --bundle-output bundles bundle" exited with 1.

0.01s$ ls -ll bundles

total 0

drwxr-xr-x 2 travis travis 6 Feb 17 20:44 My project

-rw-r--r-- 1 travis travis 0 Feb 17 20:44 report.html

The command "ls -ll bundles" exited with 0.

0.01s$ ls -ll "bundles/My project"

total 0

Are you able to successfully build and test locally using the same steps as you’re trying to perform on Travis CI? What if you start to reduce the number of steps you do on Travis CI. Could you limit it to downloading bob.jar and bundling, ie ignoring luarocks, luacov and all of that?

1 Like

local build work without errors. I will try tommorow reduce number of steps. But it looks like error happened inside bob. Maybe somethink with environment. I install lua to local dir, mb i need install it with sudo.

if i try run only bob. I have same problem.

ERROR env/share/lua/5.1/luarocks/fs/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/unix/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/unix.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/win32/tools.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/win32.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs/lua.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/persist.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/list.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/require.lua:0 the module '/luarocks/loader.lua' can't be found

ERROR env/share/lua/5.1/luarocks/repos.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/make_manifest.lua:0 the module '/luarocks/manif.lua' can't be found

ERROR env/share/lua/5.1/luarocks/command_line.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/config_cmd.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/install.lua:0 the module '/luarocks/path.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/command.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/cmake.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/make.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build/builtin.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/cvs.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/sscm.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/svn.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_file.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_http.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_http.lua:0 the module '/luarocks/fetch/hg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_https.lua:0 the module '/luarocks/fetch/hg_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/hg_ssh.lua:0 the module '/luarocks/fetch/hg_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_https.lua:0 the module '/luarocks/fetch/git_http.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch/git_ssh.lua:0 the module '/luarocks/fetch/git.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/patch.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/zip.lua:0 the module '/zlib.lua' can't be found

ERROR env/share/lua/5.1/luarocks/tools/tar.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/pack.lua:0 the module '/luarocks/path.lua' can't be found

ERROR env/share/lua/5.1/luarocks/type_check.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/make.lua:0 the module '/luarocks/build.lua' can't be found

ERROR env/share/lua/5.1/luarocks/remove.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fs.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/manif.lua:0 the module '/luarocks/manif_core.lua' can't be found

ERROR env/share/lua/5.1/luarocks/add.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/deps.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/build.lua:0 the module '/luarocks/pack.lua' can't be found

ERROR env/share/lua/5.1/luarocks/search.lua:0 the module '/luarocks/dir.lua' can't be found

ERROR env/share/lua/5.1/luarocks/show.lua:0 the module '/luarocks/search.lua' can't be found

ERROR env/share/lua/5.1/luarocks/manif_core.lua:0 the module '/luarocks/persist.lua' can't be found

ERROR env/share/lua/5.1/luarocks/fetch.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/unpack.lua:0 the module '/luarocks/fetch.lua' can't be found

ERROR env/share/lua/5.1/luarocks/validate.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/cfg.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/download.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/help.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/util.lua:0 the module '/debug.lua' can't be found

ERROR env/share/lua/5.1/luarocks/index.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/cache.lua:0 the module '/luarocks/fs.lua' can't be found

ERROR env/share/lua/5.1/luarocks/refresh_cache.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/loader.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/admin_remove.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/new_version.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/lint.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/purge.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/path.lua:0 the module '/luarocks/dir.lua' can't be found

ERROR env/share/lua/5.1/luarocks/path_cmd.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/write_rockspec.lua:0 the module '/luarocks/cfg.lua' can't be found

ERROR env/share/lua/5.1/luarocks/doc.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/upload.lua:0 the module '/luarocks/util.lua' can't be found

ERROR env/share/lua/5.1/luarocks/upload/api.lua:0 the module '/luarocks/cfg.lua' can't be found

I think what @britzl meant was that, if you don’t set the LUA variable, will bob run fine on the project? (and also removing any luarocks-references from the project)

Is it the LUA env variable that makes bob use your manually installed lua libraries?
If so, perhaps you should test that the lua installation is ok? E.g. run a test script that uses luarocks’ libraries: lua mytest.lua

Also, have you tried using LUA_PATH/LUA_CPATH to add module paths to the executable (since bob.jar already contains luac)

Is this actually possible? It is my understanding and experience that it is not possible to get Defold/dmengine to use external Lua libs such as LuaFileSystem.

How do you run bob? Could you provide the exact command line? I don’t see how building/bundling a Defold app can have anything to do with whatever Lua modules you happen to install using LuaRocks.

Ah, I see now, he installs luarocks into the actual project, and as such bob will parse all lua files and try to resolve all “require”'s.

My guess is that if you move the “env/share/lua/5.1/luarocks” to “luarocks”, the project should compile.

3 Likes

Ah, good catch! That’s probably what’s causing it!

thanks, i move lua and it help.:grinning:

1 Like

I push to github, CI build project, then build bundles. After that upload all to amazon s3. Then all my teammates can download builds. Awesome :slight_smile:

5 Likes

Nice! Travis, Circle and similar CI services are awesome in the way they integrate with GitHub and similar.

2 Likes