From c0b6ec8ccb33c62e6f4ae960cb64084b02efe711 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 27 Aug 2019 18:10:15 -0700 Subject: [PATCH] Clean up more old plugin gunk --- .travis.yml | 29 ----------------------------- plugin/.gitignore | 1 - plugin/.luacov | 8 -------- plugin/loadEnvironment.lua | 37 ------------------------------------- plugin/runTest.lua | 15 --------------- plugin/spec.lua | 17 ----------------- plugin/tests/empty.lua | 5 ----- 7 files changed, 112 deletions(-) delete mode 100644 plugin/.gitignore delete mode 100644 plugin/.luacov delete mode 100644 plugin/loadEnvironment.lua delete mode 100644 plugin/runTest.lua delete mode 100644 plugin/spec.lua delete mode 100644 plugin/tests/empty.lua diff --git a/.travis.yml b/.travis.yml index 5fb8a2b2..adf57020 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,5 @@ matrix: 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 rust: 1.34.0 cache: cargo diff --git a/plugin/.gitignore b/plugin/.gitignore deleted file mode 100644 index 92b37c63..00000000 --- a/plugin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/luacov.* \ No newline at end of file diff --git a/plugin/.luacov b/plugin/.luacov deleted file mode 100644 index 996d3cc0..00000000 --- a/plugin/.luacov +++ /dev/null @@ -1,8 +0,0 @@ -return { - include = { - "^src", - }, - exclude = { - "%.spec$", - }, -} \ No newline at end of file diff --git a/plugin/loadEnvironment.lua b/plugin/loadEnvironment.lua deleted file mode 100644 index e7065daa..00000000 --- a/plugin/loadEnvironment.lua +++ /dev/null @@ -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 \ No newline at end of file diff --git a/plugin/runTest.lua b/plugin/runTest.lua deleted file mode 100644 index a3a682d0..00000000 --- a/plugin/runTest.lua +++ /dev/null @@ -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) \ No newline at end of file diff --git a/plugin/spec.lua b/plugin/spec.lua deleted file mode 100644 index 22ed2543..00000000 --- a/plugin/spec.lua +++ /dev/null @@ -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 \ No newline at end of file diff --git a/plugin/tests/empty.lua b/plugin/tests/empty.lua deleted file mode 100644 index bfda7fad..00000000 --- a/plugin/tests/empty.lua +++ /dev/null @@ -1,5 +0,0 @@ -local ReplicatedStorage = game:GetService("ReplicatedStorage") - -local Session = require(ReplicatedStorage.Modules.Rojo.Session) - -Session.new() \ No newline at end of file