|
|
@ -38,7 +38,7 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sphinx-build -qW -j3 . docs/html
|
|
|
|
sphinx-build -qW -j3 . docs/html
|
|
|
|
- name: Upload docs
|
|
|
|
- name: Upload docs
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
name: docs
|
|
|
|
path: docs/html
|
|
|
|
path: docs/html
|
|
|
@ -54,6 +54,20 @@ jobs:
|
|
|
|
-DBUILD_TESTS:BOOL=ON \
|
|
|
|
-DBUILD_TESTS:BOOL=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$DF_FOLDER"
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$DF_FOLDER"
|
|
|
|
ninja install
|
|
|
|
ninja install
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
mkdir -p artifacts
|
|
|
|
|
|
|
|
cp "$DF_FOLDER/test_status.json" "$DF_FOLDER"/*.log artifacts
|
|
|
|
|
|
|
|
- name: Upload test artifacts
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
|
|
|
|
if: success() || failure()
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: test-artifacts
|
|
|
|
|
|
|
|
path: artifacts
|
|
|
|
lint:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|