diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100644 index 00000000..d7ced8a4 --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash -x + +function ExitIfNonZero { + if [ $1 -ne 0 ]; then + exit $1 + fi +} + +xbuild /p:NoWarn=1584 DepotDownloader.sln /target:DepotDownloader +ExitIfNonZero $? diff --git a/.ci/exec-with-retry.sh b/.ci/exec-with-retry.sh new file mode 100644 index 00000000..b4ece722 --- /dev/null +++ b/.ci/exec-with-retry.sh @@ -0,0 +1,11 @@ +#!/bin/bash -x + +# Try 10 times +for iter in {1..10} +do + ("$@") + if [[ $? -eq 0 ]] + then + exit 0 + fi +done diff --git a/.ci/trigger-build.txt b/.ci/trigger-build.txt new file mode 100644 index 00000000..e69de29b diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d1ee1744 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: c + +env: + - EnableNuGetPackageRestore=true + +before_install: + # Make sure mono is installed, + # pipe stdout to dev/null because qq is still too chatty + - sudo apt-get update -qq > /dev/null + - sudo apt-get install -qq mono-devel > /dev/null + # update root certs for nuget + - mozroots --import --sync + +script: + - .ci/build.sh + - .ci/test.sh + +notifications: + irc: + channels: + - "irc.gamesurge.net#opensteamworks" + on_success: always + on_failure: always + skip_join: true