You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.0 KiB
71 lines
2.0 KiB
language: cpp |
|
|
|
os: |
|
- linux |
|
- osx |
|
|
|
notifications: |
|
email: |
|
on_failure: change # default: always |
|
|
|
addons: |
|
apt: |
|
packages: |
|
- mingw-w64 |
|
homebrew: |
|
packages: |
|
- mingw-w64 |
|
|
|
env: |
|
- MAKE_BUILD=make |
|
- MAKE_BUILD=debug |
|
|
|
before_script: |
|
- touch storm.dll |
|
- touch diabloui.dll |
|
|
|
script: |
|
- if [ $MAKE_BUILD = make ]; then make; fi |
|
- if [ $MAKE_BUILD = debug ]; then make debug; fi |
|
|
|
after_script: |
|
- make clean |
|
|
|
stages: |
|
- Riivaaja |
|
- test |
|
|
|
jobs: |
|
include: |
|
- stage: Riivaaja |
|
name: "Build using Riivaaja (original toolset)" |
|
language: minimal |
|
sudo: required |
|
services: |
|
- docker |
|
addons: {} |
|
script: docker run -v $(pwd):/root/devilution diasurgical/riivaaja:stable |
|
- stage: test |
|
name: "Riivaaja: Calculate binary accuracy" |
|
language: minimal |
|
sudo: required |
|
services: |
|
- docker |
|
addons: {} |
|
script: |
|
- | |
|
set -e |
|
wget https://github.com/diasurgical/devilution-comparer/releases/download/v0.3.5/devilution-comparer-v0.3.5-x86_64-unknown-linux-gnu.tar.xz |
|
tar xf devilution-comparer-v0.3.5-x86_64-unknown-linux-gnu.tar.xz |
|
rm comparer-config.toml |
|
wget https://raw.githubusercontent.com/diasurgical/devilution-comparer/master/comparer-config.toml |
|
echo '#!/bin/sh' | sudo tee /bin/wine |
|
echo 'docker run -v $(pwd):/root/devilution --entrypoint "/usr/bin/wine" diasurgical/riivaaja:stable $(basename $1) $2 $3' | sudo tee --append /bin/wine |
|
sudo chmod +x /bin/wine |
|
docker run -v $(pwd):/root/devilution -e MAKE_BUILD=pdb diasurgical/riivaaja:stable |
|
./devilution-comparer generate-full Diablo.exe --no-mem-disp |
|
docker run -v $(pwd):/root/devilution diasurgical/riivaaja:stable ../status.sh |
|
after_success: |
|
- | |
|
set -e |
|
.travis/are-we-d1-yet.sh "$(< accuracy.txt)" $DISCORD_WEBHOOK
|
|
|