mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Teal CI
This commit is contained in:
parent
e938c04e30
commit
75fcf53f7d
@ -134,6 +134,19 @@ Clang_Format:
|
|||||||
script:
|
script:
|
||||||
- CI/check_clang_format.sh
|
- CI/check_clang_format.sh
|
||||||
|
|
||||||
|
Teal:
|
||||||
|
stage: checks
|
||||||
|
extends: .Ubuntu_Image
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get -y install curl wget make build-essential libreadline-dev git-core zip unzip
|
||||||
|
script:
|
||||||
|
- CI/teal_ci.sh
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build_teal
|
||||||
|
|
||||||
|
|
||||||
Ubuntu_GCC_Debug:
|
Ubuntu_GCC_Debug:
|
||||||
extends: .Ubuntu
|
extends: .Ubuntu
|
||||||
cache:
|
cache:
|
||||||
|
46
CI/teal_ci.sh
Executable file
46
CI/teal_ci.sh
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
pushd .
|
||||||
|
|
||||||
|
echo "Install lua 5.1"
|
||||||
|
cd ~
|
||||||
|
curl -R -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
|
||||||
|
tar -zxf lua-5.1.5.tar.gz
|
||||||
|
rm lua-5.1.5.tar.gz
|
||||||
|
cd lua-5.1.5/
|
||||||
|
make linux
|
||||||
|
cd ~
|
||||||
|
PATH=$PATH:~/lua-5.1.5/src
|
||||||
|
|
||||||
|
echo "Install luarocks"
|
||||||
|
luarocksV="3.9.2"
|
||||||
|
wget https://luarocks.org/releases/luarocks-$luarocksV.tar.gz
|
||||||
|
tar zxpf luarocks-$luarocksV.tar.gz
|
||||||
|
rm luarocks-$luarocksV.tar.gz
|
||||||
|
cd luarocks-$luarocksV/
|
||||||
|
./configure --with-lua-bin=$HOME/lua-5.1.5/src --with-lua-include=$HOME/lua-5.1.5/src --prefix=$HOME/luarocks
|
||||||
|
make build
|
||||||
|
make install
|
||||||
|
cd ~
|
||||||
|
rm -r luarocks-$luarocksV
|
||||||
|
PATH=$PATH:~/luarocks/bin
|
||||||
|
|
||||||
|
echo "Install openmwluadocumentor"
|
||||||
|
git clone https://gitlab.com/ptmikheev/openmw-luadocumentor.git
|
||||||
|
cd openmw-luadocumentor
|
||||||
|
luarocks make luarocks/openmwluadocumentor-0.2.0-1.rockspec
|
||||||
|
cd ~
|
||||||
|
rm -r openmw-luadocumentor
|
||||||
|
|
||||||
|
|
||||||
|
echo "Install Teal Cyan"
|
||||||
|
git clone https://github.com/teal-language/cyan.git --depth 1
|
||||||
|
cd cyan
|
||||||
|
luarocks make cyan-dev-1.rockspec
|
||||||
|
|
||||||
|
luarocks show openmwluadocumentor
|
||||||
|
luarocks show cyan
|
||||||
|
|
||||||
|
LUAROCKS=~/luarocks/bin
|
||||||
|
export LUAROCKS
|
||||||
|
popd
|
||||||
|
pushd docs
|
||||||
|
./build_teal.sh ../build_teal
|
13
docs/build_teal.sh
Normal file → Executable file
13
docs/build_teal.sh
Normal file → Executable file
@ -1,8 +1,11 @@
|
|||||||
|
# Requires the LUAROCKS variable to be set to the luarocks/bin directory, e. g. `~/.luarocks/bin`
|
||||||
|
# takes an absolute path to the output directory as the argument
|
||||||
|
|
||||||
DOCS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
DOCS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
FILES_DIR=$(realpath $DOCS_DIR/../files)
|
FILES_DIR=$(realpath $DOCS_DIR/../files)
|
||||||
OUTPUT_DIR=$(realpath $DOCS_DIR/$1)
|
OUTPUT_DIR=$1
|
||||||
DOCUMENTOR_PATH=~/.luarocks/bin/openmwluadocumentor
|
DOCUMENTOR_PATH=$LUAROCKS/openmwluadocumentor
|
||||||
TEAL_PATH=~/.luarocks/bin/tl
|
TEAL_PATH=$LUAROCKS/cyan
|
||||||
|
|
||||||
rm -rf $OUTPUT_DIR
|
rm -rf $OUTPUT_DIR
|
||||||
mkdir $OUTPUT_DIR
|
mkdir $OUTPUT_DIR
|
||||||
@ -17,12 +20,12 @@ build_path() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cd $FILES_DIR
|
cd $FILES_DIR
|
||||||
build_path lua_api/openmw/*lua
|
build_path "lua_api/openmw/*lua"
|
||||||
|
|
||||||
data_paths=$($DOCS_DIR/source/luadoc_data_paths.sh)
|
data_paths=$($DOCS_DIR/source/luadoc_data_paths.sh)
|
||||||
for path in $data_paths
|
for path in $data_paths
|
||||||
do
|
do
|
||||||
build_path data/$path
|
build_path "data/$path"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd $OUTPUT_DIR
|
cd $OUTPUT_DIR
|
||||||
|
@ -14,15 +14,16 @@ cd ~
|
|||||||
PATH=$PATH:~/lua-5.1.5/src
|
PATH=$PATH:~/lua-5.1.5/src
|
||||||
|
|
||||||
echo "Install luarocks"
|
echo "Install luarocks"
|
||||||
wget https://luarocks.org/releases/luarocks-2.4.2.tar.gz
|
luarocksV="3.9.2"
|
||||||
tar zxpf luarocks-2.4.2.tar.gz
|
wget https://luarocks.org/releases/luarocks-$luarocksV.tar.gz
|
||||||
rm luarocks-2.4.2.tar.gz
|
tar zxpf luarocks-$luarocksV.tar.gz
|
||||||
cd luarocks-2.4.2/
|
rm luarocks-$luarocksV.tar.gz
|
||||||
|
cd luarocks-$luarocksV/
|
||||||
./configure --with-lua-bin=$HOME/lua-5.1.5/src --with-lua-include=$HOME/lua-5.1.5/src --prefix=$HOME/luarocks
|
./configure --with-lua-bin=$HOME/lua-5.1.5/src --with-lua-include=$HOME/lua-5.1.5/src --prefix=$HOME/luarocks
|
||||||
make build
|
make build
|
||||||
make install
|
make install
|
||||||
cd ~
|
cd ~
|
||||||
rm -r luarocks-2.4.2
|
rm -r luarocks-$luarocksV
|
||||||
PATH=$PATH:~/luarocks/bin
|
PATH=$PATH:~/luarocks/bin
|
||||||
|
|
||||||
echo "Install openmwluadocumentor"
|
echo "Install openmwluadocumentor"
|
||||||
|
0
docs/source/luadoc_data_paths.sh
Normal file → Executable file
0
docs/source/luadoc_data_paths.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user