mirror of
https://github.com/rubenwardy/food.git
synced 2024-12-22 07:50:19 +01:00
Add travis checks
This commit is contained in:
parent
3edc66302e
commit
9913055d6a
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
language: lua
|
||||||
|
before_install: sh travis_install.sh
|
||||||
|
script: cd minetest && ./bin/minetestserver --gameid minetest_game --worldname world --port 31234
|
||||||
|
notifications:
|
||||||
|
email: false
|
@ -1,6 +1,8 @@
|
|||||||
Food
|
Food
|
||||||
====
|
====
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/rubenwardy/food.svg?branch=master)](https://travis-ci.org/rubenwardy/food)
|
||||||
|
|
||||||
This is the main mod in the food mod collection.
|
This is the main mod in the food mod collection.
|
||||||
|
|
||||||
Version 2.3
|
Version 2.3
|
||||||
|
7
requirements.txt
Normal file
7
requirements.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
docfarming?
|
||||||
|
PilzAdam/farming_plus@github?
|
||||||
|
JKMurray/JKFarming@github?
|
||||||
|
my_mobs?
|
||||||
|
PilzAdam/mobs@github
|
||||||
|
sapier/animals_modpack@github?
|
||||||
|
hawkril/mobfcooking@github?
|
56
travis_install.sh
Executable file
56
travis_install.sh
Executable file
@ -0,0 +1,56 @@
|
|||||||
|
# Move the food modpack to a subfolder
|
||||||
|
mkdir tmp1 && mv * tmp1
|
||||||
|
mv tmp1 food
|
||||||
|
|
||||||
|
# Install dependancies
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libirrlicht-dev libbz2-dev \
|
||||||
|
libpng12-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
|
||||||
|
libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev \
|
||||||
|
libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev wget \
|
||||||
|
lua5.1 luarocks libzzip-dev luajit
|
||||||
|
sudo luarocks install luazip
|
||||||
|
sudo luarocks install luafilesystem
|
||||||
|
sudo luarocks install luajson
|
||||||
|
|
||||||
|
# Get minetest
|
||||||
|
wget https://www.dropbox.com/s/wtub256856vdclf/minetestserver.zip?dl=1 -O minetestserver.zip
|
||||||
|
unzip minetestserver.zip -d minetest
|
||||||
|
|
||||||
|
# Install the food modpack
|
||||||
|
cp food minetest/mods -rf
|
||||||
|
|
||||||
|
# Install and configure mtpm
|
||||||
|
git clone https://github.com/rubenwardy/mtpm
|
||||||
|
cd mtpm
|
||||||
|
mkdir tmp
|
||||||
|
./mtpm.lua config mod_location ../minetest/mods/
|
||||||
|
|
||||||
|
# Install the food modpack's supported mods
|
||||||
|
./mtpm.lua install -r ../food/requirements.txt -y
|
||||||
|
|
||||||
|
# Configure Minetest
|
||||||
|
echo "Configuring Minetest"
|
||||||
|
cd ../minetest
|
||||||
|
mkdir worlds/world
|
||||||
|
echo "gameid = minetest" > worlds/world/world.mt
|
||||||
|
echo "backend = sqlite3" >> worlds/world/world.mt
|
||||||
|
echo "creative_mode = true" >> worlds/world/world.mt
|
||||||
|
echo "enable_damage = true" >> worlds/world/world.mt
|
||||||
|
cd mods
|
||||||
|
for f in *
|
||||||
|
do
|
||||||
|
echo "load_mod_$f = true" >> ../worlds/world/world.mt
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install test worldmod
|
||||||
|
cd ../
|
||||||
|
mkdir worlds/world/worldmods/
|
||||||
|
mkdir worlds/world/worldmods/food_test/
|
||||||
|
echo "minetest.after(0, function()" > worlds/world/worldmods/food_test/init.lua
|
||||||
|
echo " print(\"tests complete\")" >> worlds/world/worldmods/food_test/init.lua
|
||||||
|
echo " minetest.request_shutdown()" >> worlds/world/worldmods/food_test/init.lua
|
||||||
|
echo "end)" >> worlds/world/worldmods/food_test/init.lua
|
||||||
|
|
||||||
|
# Go pack to the right directory
|
||||||
|
cd ../food
|
Loading…
Reference in New Issue
Block a user