Skip to content

Commit

Permalink
Install luarocks lib "environ" for haxe 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol committed Jul 26, 2020
1 parent 9b264ba commit d19b6bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/travix/commands/LuaCommand.hx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class LuaCommand extends Command {

// Install lua libraries
exec('sudo', 'luarocks install haxe-deps'.split(' '));
exec('eval', ['sudo luarocks install environ 0.1.0-1']); // for haxe 3

// print the effective versions
exec("luarocks", ['--version']);
Expand Down
8 changes: 8 additions & 0 deletions tests/Run.hx
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ class Run {
return asserts.done();
}
#end

#if lua
public function setEnv() {
Sys.putEnv('TRAVIX_LUA', 'true');
asserts.assert(Sys.getEnv('TRAVIX_LUA') == 'true', 'Make sure environ is installed');
return asserts.done();
}
#end
}

0 comments on commit d19b6bd

Please sign in to comment.