language: csharp

# Add build number to version
before_script: sed -ri "s/Version\(\"(.*).0.0\"\)/Version(\"\1.${TRAVIS_BUILD_NUMBER}.0\")/g" OxidePatcher/Properties/AssemblyInfo.cs

# Build the project
solution: OxidePatcher.sln /p:win32Icon="Resources/logo.ico"

# Run deployment script
after_success: "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == OxideMod/OxidePatcher ]] && [[ $TRAVIS_BRANCH == master ]] && ./deploy.sh"

notifications:
  # Disable build status email notifications, until the issue with forks is fixed
  email: false
  # IRC notification
  irc: "chat.freenode.net#oxidemod"

# Environmental system variables
env:
  global:
    # Super secure, encrypted variables! Ssssh!
    - secure: "f0wFbnRtBbWEIemepPF0HPXLmrge7u3DwhBM+R1rFrEwX1kd3gXW9hHsyzgp5jwDqljT2DH8dXPeurVQHGrTExQX2U9yiVynio8284kfEe5rtpNTACmHqjspWyU4HYMeoIJsliXA2O76WprfnjEKpLa6/cJMv+5sGPcHnP5t6u0="

language: csharp

# Add build number to version
before_script: sed -ri "s/Version\(\"(.*).0.0\"\)/Version(\"\1.${TRAVIS_BUILD_NUMBER}.0\")/g" OxidePatcher/Properties/AssemblyInfo.cs

# Build the project
solution: OxidePatcher.sln /p:win32Icon="Resources/logo.ico"

# Run deployment script
after_success: "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == OxideMod/OxidePatcher ]] && [[ $TRAVIS_BRANCH == master ]] && ./deploy.sh"

notifications:
  # Disable build status email notifications, until the issue with forks is fixed
  email: false

# Environmental system variables
env:
  global:
    # Super secure, encrypted variables! Ssssh!
    - secure: "f0wFbnRtBbWEIemepPF0HPXLmrge7u3DwhBM+R1rFrEwX1kd3gXW9hHsyzgp5jwDqljT2DH8dXPeurVQHGrTExQX2U9yiVynio8284kfEe5rtpNTACmHqjspWyU4HYMeoIJsliXA2O76WprfnjEKpLa6/cJMv+5sGPcHnP5t6u0="

Remove IRC notification via Travis
Remove IRC notification via Travis [ci skip]