mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 06:05:24 +00:00
Clean up more old plugin gunk
This commit is contained in:
29
.travis.yml
29
.travis.yml
@@ -1,34 +1,5 @@
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Lua tests are currently disabled because of holes in Lemur that are pretty
|
|
||||||
# tedious to fix. It should be fixed by either adding missing features to
|
|
||||||
# Lemur or by migrating to a CI system based on real Roblox instead.
|
|
||||||
|
|
||||||
# - language: python
|
|
||||||
# env:
|
|
||||||
# - LUA="lua=5.1"
|
|
||||||
|
|
||||||
# before_install:
|
|
||||||
# - pip install hererocks
|
|
||||||
# - hererocks lua_install -r^ --$LUA
|
|
||||||
# - export PATH=$PATH:$PWD/lua_install/bin
|
|
||||||
|
|
||||||
# install:
|
|
||||||
# - luarocks install luafilesystem
|
|
||||||
# - luarocks install busted
|
|
||||||
# - luarocks install luacov
|
|
||||||
# - luarocks install luacov-coveralls
|
|
||||||
# - luarocks install luacheck
|
|
||||||
|
|
||||||
# script:
|
|
||||||
# - cd plugin
|
|
||||||
# - luacheck src
|
|
||||||
# - lua -lluacov spec.lua
|
|
||||||
|
|
||||||
# after_success:
|
|
||||||
# - cd plugin
|
|
||||||
# - luacov-coveralls -e $TRAVIS_BUILD_DIR/lua_install
|
|
||||||
|
|
||||||
- language: rust
|
- language: rust
|
||||||
rust: 1.34.0
|
rust: 1.34.0
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|||||||
1
plugin/.gitignore
vendored
1
plugin/.gitignore
vendored
@@ -1 +0,0 @@
|
|||||||
/luacov.*
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
include = {
|
|
||||||
"^src",
|
|
||||||
},
|
|
||||||
exclude = {
|
|
||||||
"%.spec$",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
--[[
|
|
||||||
Loads the Rojo plugin and all of its dependencies.
|
|
||||||
]]
|
|
||||||
|
|
||||||
local function loadEnvironment()
|
|
||||||
-- If you add any dependencies, add them to this table so they'll be loaded!
|
|
||||||
local LOAD_MODULES = {
|
|
||||||
{"src", "Rojo"},
|
|
||||||
{"modules/promise/lib", "Promise"},
|
|
||||||
{"modules/testez/lib", "TestEZ"},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- This makes sure we can load Lemur and other libraries that depend on init.lua
|
|
||||||
package.path = package.path .. ";?/init.lua"
|
|
||||||
|
|
||||||
-- If this fails, make sure you've run `lua bin/install-dependencies.lua` first!
|
|
||||||
local lemur = require("modules.lemur")
|
|
||||||
|
|
||||||
-- Create a virtual Roblox tree
|
|
||||||
local habitat = lemur.Habitat.new()
|
|
||||||
|
|
||||||
-- We'll put all of our library code and dependencies here
|
|
||||||
local modules = lemur.Instance.new("Folder")
|
|
||||||
modules.Name = "Modules"
|
|
||||||
modules.Parent = habitat.game:GetService("ReplicatedStorage")
|
|
||||||
|
|
||||||
-- Load all of the modules specified above
|
|
||||||
for _, module in ipairs(LOAD_MODULES) do
|
|
||||||
local container = habitat:loadFromFs(module[1])
|
|
||||||
container.Name = module[2]
|
|
||||||
container.Parent = modules
|
|
||||||
end
|
|
||||||
|
|
||||||
return habitat, modules
|
|
||||||
end
|
|
||||||
|
|
||||||
return loadEnvironment
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
local loadEnvironment = require("loadEnvironment")
|
|
||||||
|
|
||||||
local testPath = assert((...), "Please specify a path to a test file.")
|
|
||||||
|
|
||||||
local habitat = loadEnvironment()
|
|
||||||
|
|
||||||
local testModule = habitat:loadFromFs(testPath)
|
|
||||||
|
|
||||||
if testModule == nil then
|
|
||||||
error("Couldn't find test file at " .. testPath)
|
|
||||||
end
|
|
||||||
|
|
||||||
print("Starting test module.")
|
|
||||||
|
|
||||||
habitat:require(testModule)
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
--[[
|
|
||||||
Loads our library and all of its dependencies, then runs tests using TestEZ.
|
|
||||||
]]
|
|
||||||
|
|
||||||
local loadEnvironment = require("loadEnvironment")
|
|
||||||
|
|
||||||
local habitat, modules = loadEnvironment()
|
|
||||||
|
|
||||||
-- Load TestEZ and run our tests
|
|
||||||
local TestEZ = habitat:require(modules.TestEZ)
|
|
||||||
|
|
||||||
local results = TestEZ.TestBootstrap:run({modules.Rojo}, TestEZ.Reporters.TextReporter)
|
|
||||||
|
|
||||||
-- Did something go wrong?
|
|
||||||
if results.failureCount > 0 then
|
|
||||||
os.exit(1)
|
|
||||||
end
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
|
||||||
|
|
||||||
local Session = require(ReplicatedStorage.Modules.Rojo.Session)
|
|
||||||
|
|
||||||
Session.new()
|
|
||||||
Reference in New Issue
Block a user