Avoid running travis commands when starting DF

develop
lethosor 2020-04-11 00:40:25 -04:00
parent 35dbf6cf5f
commit ab81b1f06d
1 changed files with 5 additions and 5 deletions

@ -25,11 +25,11 @@ jobs:
submodules: true
- name: Set up environment
run: |
echo 'export DF_VERSION=$(sh travis/get-df-version.sh)' >> "$HOME/.dfhackrc"
echo 'export DF_FOLDER="$HOME/DF/$DF_VERSION/df_linux"' >> "$HOME/.dfhackrc"
echo export DF_VERSION="$(sh travis/get-df-version.sh)" >> "$HOME/.df-env"
echo export DF_FOLDER="$HOME/DF/$DF_VERSION/df_linux" >> "$HOME/.df-env"
- name: Download DF
run: |
source "$HOME/.dfhackrc"
source "$HOME/.df-env"
sh travis/download-df.sh
- name: Git information
run: |
@ -44,7 +44,7 @@ jobs:
path: docs/html
- name: Build DFHack
run: |
source "$HOME/.dfhackrc"
source "$HOME/.df-env"
cmake \
-S . \
-B build-ci \
@ -56,7 +56,7 @@ jobs:
ninja -C build-ci install
- name: Run tests
run: |
source "$HOME/.dfhackrc"
source "$HOME/.df-env"
mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
python travis/run-tests.py --headless --keep-status "$DF_FOLDER"
python travis/check-rpc.py "$DF_FOLDER/dfhack-rpc.txt"