version: master_{build}
clone_depth: 1

image:
- Ubuntu1804

services:
- docker

build_script:
  - docker run -v `pwd`:/build mujx/construct-ci:18.04 /bin/bash -c "./autogen.sh && ./configure --enable-assert && make install && construct -smoketest localhost"
#  - c:\msys64\usr\bin\sh.exe -lc "cd $APPVEYOR_BUILD_FOLDER; sh tools/appveyor-build.sh"
#  - c:\msys64\usr\bin\sh.exe -lc "cd $APPVEYOR_BUILD_FOLDER/build/bin; ./charybdis -version"

#install:
#  - c:\msys64\usr\bin\sh.exe -lc "pacman -Sy --noconfirm git"
#  - c:\msys64\usr\bin\sh.exe -lc "uname -a"
#  - c:\msys64\usr\bin\sh.exe -lc "cat /proc/cpuinfo"
#  - c:\msys64\usr\bin\sh.exe -lc "cat /proc/meminfo"
#  - c:\msys64\usr\bin\sh.exe -lc "cygcheck -s -v > $APPVEYOR_BUILD_FOLDER/cygcheck.log 2>&1"
#  - ps: Push-AppveyorArtifact cygcheck.log

#on_failure:
#  - ps: Push-AppveyorArtifact config.log
#  - ps: Push-AppveyorArtifact include\ircd\config.h

notifications:
  - provider: Webhook
    url: http://zemos.net:8448/webhook
    on_build_success: true
    on_build_failure: true
    on_build_status_changed: true