From 9e22f32dd442d7c95766aca54ceea9833efa4f9d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 17 Feb 2022 01:14:56 -0300 Subject: tests: remove Travis CI, add Github Actions --- spec/README.md | 8 ++++---- spec/util/test_env.lua | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'spec') diff --git a/spec/README.md b/spec/README.md index 46372b19..b55550e6 100644 --- a/spec/README.md +++ b/spec/README.md @@ -3,14 +3,14 @@ ## Overview -Test suite for LuaRocks project with Busted unit testing framework(http://olivinelabs.com/busted/). +Test suite for LuaRocks project with Busted unit testing framework(http://olivinelabs.com/busted/). * Contains unit & integration tests * Easy setup for your purpose on command line or from configuration file ## Dependencies -* Lua >= 5.1 +* Lua >= 5.1 * Busted with dependencies ## Usage @@ -26,8 +26,8 @@ LuaRocks folder or specify with *-C* flag. env=, (default:"minimal") type what kind of environment to use ["minimal", "full"] noreset, Don't reset environment after each test clean, remove existing testing environment -appveyor, add just if running on TravisCI -travis, add just if running on TravisCI +appveyor, add just if running on Appveyor +ci, add just if running on Unix CI os=, type your OS ["linux", "os x", "windows"] ``` --------------------------------------------------------------------------------------------- diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index c40921cc..737d90a5 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -17,7 +17,7 @@ ARGUMENTS default: "minimal"). noreset Don't reset environment after each test clean Remove existing testing environment. - travis Add if running on TravisCI. + ci Add if running on Unix CI. appveyor Add if running on Appveyor. os= Set OS ("linux", "osx", or "windows"). lua_dir= Path of Lua installation (default "/usr/local") @@ -238,8 +238,8 @@ function test_env.set_args() test_env.TEST_ENV_CLEAN = true elseif argument == "verbose" then test_env.VERBOSE = true - elseif argument == "travis" then - test_env.TRAVIS = true + elseif argument == "ci" then + test_env.CI = true elseif argument == "appveyor" then test_env.APPVEYOR = true elseif argument:find("^os=") then @@ -273,13 +273,13 @@ function test_env.set_args() local system = execute_output("uname -s") if system == "Linux" then test_env.TEST_TARGET_OS = "linux" - if test_env.TRAVIS then + if test_env.CI then test_env.OPENSSL_INCDIR = "/usr/include" test_env.OPENSSL_LIBDIR = "/usr/lib/x86_64-linux-gnu" end elseif system == "Darwin" then test_env.TEST_TARGET_OS = "osx" - if test_env.TRAVIS then + if test_env.CI then test_env.OPENSSL_INCDIR = "/usr/local/opt/openssl/include" test_env.OPENSSL_LIBDIR = "/usr/local/opt/openssl/lib" end @@ -643,7 +643,7 @@ end function test_env.setup_specs(extra_rocks) -- if global variable about successful creation of testing environment doesn't exist, build environment if not test_env.setup_done then - if test_env.TRAVIS then + if test_env.CI then if not test_env.exists(os.getenv("HOME") .. "/.ssh/id_rsa.pub") then execute_bool("ssh-keygen -t rsa -P \"\" -f ~/.ssh/id_rsa") execute_bool("cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys") -- cgit v1.2.3-55-g6feb