From 42fb39f0ae0876f2ae322a986179bfc453bccd15 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 19 Sep 2020 13:23:50 +0200 Subject: [PATCH] Remove travis, use only github actions --- .travis.yml | 51 ------------------------- .travis/my.conf | 1 - .travis/mysql_settings.py | 70 ---------------------------------- .travis/postgresql_settings.py | 60 ----------------------------- .travis/sqlite3_settings.py | 47 ----------------------- 5 files changed, 229 deletions(-) delete mode 100644 .travis.yml delete mode 100644 .travis/my.conf delete mode 100644 .travis/mysql_settings.py delete mode 100644 .travis/postgresql_settings.py delete mode 100644 .travis/sqlite3_settings.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3d3714c4f7..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,51 +0,0 @@ -dist: xenial -language: python -cache: pip - -services: - - postgresql - - mysql - -python: - - "3.7" - - "3.8" - -env: - - TESTING_DB=sqlite3 - - TESTING_DB=postgresql - - TESTING_DB=mysql - -before_install: - - # - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;" - - psql --version - - psql -U postgres -c "CREATE DATABASE evennia;" - - psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';" - - psql -U postgres -c "ALTER USER evennia CREATEDB;" - - mysql --version - - mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" - - mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';" - - mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';" - -install: - - pip install psycopg2-binary - - pip install mysqlclient - - pip install coveralls - - pip install codacy-coverage - - pip install -e . - -before_script: - - make format - - evennia --init testing_mygame - - cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py - - cd testing_mygame - - evennia migrate - - evennia collectstatic --noinput - -script: - - coverage run --source=../evennia --omit=*/migrations/*,*/urls.py,*/test*.py,*.sh,*.txt,*.md,*.pyc,*.service ../bin/unix/evennia test --settings=settings --keepdb evennia - -after_success: - - coveralls - - coverage xml - - python-codacy-coverage -r coverage.xml diff --git a/.travis/my.conf b/.travis/my.conf deleted file mode 100644 index 51b810ecc7..0000000000 --- a/.travis/my.conf +++ /dev/null @@ -1 +0,0 @@ -init_connect='SET collation_connection = utf8_general_ci; SET NAMES utf8;' diff --git a/.travis/mysql_settings.py b/.travis/mysql_settings.py deleted file mode 100644 index a3465b3cc6..0000000000 --- a/.travis/mysql_settings.py +++ /dev/null @@ -1,70 +0,0 @@ -""" -Evennia settings file. - -The available options are found in the default settings file found -here: - -/home/griatch/Devel/Home/evennia/evennia/evennia/settings_default.py - -Remember: - -Don't copy more from the default file than you actually intend to -change; this will make sure that you don't overload upstream updates -unnecessarily. - -When changing a setting requiring a file system path (like -path/to/actual/file.py), use GAME_DIR and EVENNIA_DIR to reference -your game folder and the Evennia library folders respectively. Python -paths (path.to.module) should be given relative to the game's root -folder (typeclasses.foo) whereas paths within the Evennia library -needs to be given explicitly (evennia.foo). - -If you want to share your game dir, including its settings, you can -put secret game- or server-specific settings in secret_settings.py. - -""" - -import os - -# Use the defaults from Evennia unless explicitly overridden -from evennia.settings_default import * - -###################################################################### -# Evennia base server config -###################################################################### - -# This is the name of your game. Make it catchy! -SERVERNAME = "testing_mygame" - -# Testing database types - -DATABASES = { - "default": { - "ENGINE": "django.db.backends.mysql", - "NAME": "evennia", - "USER": "evennia", - "PASSWORD": "password", - "HOST": "127.0.0.1", - "PORT": "", # use default port - "OPTIONS": { - "charset": "utf8mb4", - "init_command": "set collation_connection=utf8mb4_unicode_ci", - }, - "TEST": { - "NAME": "evennia", - "OPTIONS": { - "charset": "utf8mb4", - 'init_command': 'set collation_connection=utf8mb4_unicode_ci' - }, - }, - } -} - - -###################################################################### -# Settings given in secret_settings.py override those in this file. -###################################################################### -try: - from server.conf.secret_settings import * -except ImportError: - print("secret_settings.py file not found or failed to import.") diff --git a/.travis/postgresql_settings.py b/.travis/postgresql_settings.py deleted file mode 100644 index c12927af3a..0000000000 --- a/.travis/postgresql_settings.py +++ /dev/null @@ -1,60 +0,0 @@ -""" -Evennia settings file. - -The available options are found in the default settings file found -here: - -/home/griatch/Devel/Home/evennia/evennia/evennia/settings_default.py - -Remember: - -Don't copy more from the default file than you actually intend to -change; this will make sure that you don't overload upstream updates -unnecessarily. - -When changing a setting requiring a file system path (like -path/to/actual/file.py), use GAME_DIR and EVENNIA_DIR to reference -your game folder and the Evennia library folders respectively. Python -paths (path.to.module) should be given relative to the game's root -folder (typeclasses.foo) whereas paths within the Evennia library -needs to be given explicitly (evennia.foo). - -If you want to share your game dir, including its settings, you can -put secret game- or server-specific settings in secret_settings.py. - -""" - -import os - -# Use the defaults from Evennia unless explicitly overridden -from evennia.settings_default import * - -###################################################################### -# Evennia base server config -###################################################################### - -# This is the name of your game. Make it catchy! -SERVERNAME = "testing_mygame" - -# Testing database types - -DATABASES = { - "default": { - "ENGINE": "django.db.backends.postgresql", - "NAME": "evennia", - "USER": "evennia", - "PASSWORD": "password", - "HOST": "localhost", - "PORT": "", # use default - "TEST": {"NAME": "default"}, - } -} - - -###################################################################### -# Settings given in secret_settings.py override those in this file. -###################################################################### -try: - from server.conf.secret_settings import * -except ImportError: - print("secret_settings.py file not found or failed to import.") diff --git a/.travis/sqlite3_settings.py b/.travis/sqlite3_settings.py deleted file mode 100644 index cc4bae81c8..0000000000 --- a/.travis/sqlite3_settings.py +++ /dev/null @@ -1,47 +0,0 @@ -""" -Evennia settings file. - -The available options are found in the default settings file found -here: - -/home/griatch/Devel/Home/evennia/evennia/evennia/settings_default.py - -Remember: - -Don't copy more from the default file than you actually intend to -change; this will make sure that you don't overload upstream updates -unnecessarily. - -When changing a setting requiring a file system path (like -path/to/actual/file.py), use GAME_DIR and EVENNIA_DIR to reference -your game folder and the Evennia library folders respectively. Python -paths (path.to.module) should be given relative to the game's root -folder (typeclasses.foo) whereas paths within the Evennia library -needs to be given explicitly (evennia.foo). - -If you want to share your game dir, including its settings, you can -put secret game- or server-specific settings in secret_settings.py. - -""" - -import os - -# Use the defaults from Evennia unless explicitly overridden -from evennia.settings_default import * - -###################################################################### -# Evennia base server config -###################################################################### - -# This is the name of your game. Make it catchy! -SERVERNAME = "testing_mygame" - -# Using default sqlite3 settings - -###################################################################### -# Settings given in secret_settings.py override those in this file. -###################################################################### -try: - from server.conf.secret_settings import * -except ImportError: - print("secret_settings.py file not found or failed to import.")