Browse Source

update vars path

master
Evan Burkey 9 months ago
parent
commit
f7c4830568
  1. 4
      README.md
  2. 2
      codescripts/build.sh
  3. 2
      codescripts/reset.sh
  4. 2
      codescripts/test.sh

4
README.md

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
# azcore-scripts
Scripts to help automate building and testing [azerothcore](https://github.com/azerothcore/azerothcore-wotlk)
Scripts to help automate building and testing [azerothcore](https://github.com/azerothcore/azerothcore-wotlk) on a Linux system
## Setup
@ -50,7 +50,7 @@ To access your world server session, type `screen -r world` into a shell. This w @@ -50,7 +50,7 @@ To access your world server session, type `screen -r world` into a shell. This w
```bash
./test.sh 11671
```
2. Git will ask for a merge commit comment, just save the automatically generated comment as the branch is temporary
3. When azerothcore is done building, check the PR to see if there are any SQL updates by looking for a `rev_###` file in `data/sql/updates/pending_db_world/`. If there are updates to the world database, run `db.sh` to apply the updates. Any updates to the other databases will have to be done manually

2
codescripts/build.sh

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
#!/bin/sh
. ./vars || exit 1
n=$(nproc) || 1
cmake ../ -DCMAKE_INSTALL_PREFIX=$serverdir -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS=0 -DSCRIPTS=static

2
codescripts/reset.sh

@ -14,7 +14,7 @@ popd || die "failed popd" @@ -14,7 +14,7 @@ popd || die "failed popd"
sudo mysql -u $mysql_user -p"$mysql_password" < world_reset.sql
bash ./build.sh
pushd $serverdir || die "failed pushd $serverdir"
pushd $serverdir/bin || die "failed pushd $serverdir"
./start.sh
sleep 90s
./shutdown.sh

2
codescripts/test.sh

@ -1,5 +1,7 @@ @@ -1,5 +1,7 @@
#!/usr/bin/env bash
. ./vars || exit 1
[ "$#" -eq 1 ] || die "1 argument required, $# provided"
echo "$1" | grep -E -q '^[0-9]+$' || die "Numeric argument required, $1 provided"

Loading…
Cancel
Save