diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 0000000000000..f72c8e5f3a828 --- /dev/null +++ b/.builds/freebsd.yml @@ -0,0 +1,34 @@ +image: freebsd/latest +packages: +- sqlite3 +- node +- boehm-gc +- pcre +- sfml +- sdl2 +sources: +- https://github.com/nim-lang/Nim.git +environment: + CC: /usr/bin/clang +tasks: +- setup: | + cd Nim + git clone --depth 1 -q https://github.com/nim-lang/csources.git + cd csources + sh build.sh + cd ../ + bin/nim c --skipUserCfg --skipParentCfg koch + sed -i'.original' -e 's/cc = gcc/cc = clang/g' config/nim.cfg + echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv +- test: | + cd Nim + ./koch runCI && exitcode=$? || exitcode=$? + if [[ $exitcode -ne 0 ]]; then + nim c -r tools/ci_testresults.nim + fi + + exit $exitcode +triggers: +- action: email + condition: failure + to: Andreas Rumpf \ No newline at end of file diff --git a/.gitignore b/.gitignore index 114d0de5e4511..34971bc3f51ce 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,5 @@ megatest.nim /outputGotten.txt /lib/pure/*.js + +!/.builds/ diff --git a/testament/specs.nim b/testament/specs.nim index 53578b3060197..61820c3286617 100644 --- a/testament/specs.nim +++ b/testament/specs.nim @@ -229,6 +229,8 @@ proc parseSpec*(filename: string): TSpec = of "32bit": if sizeof(int) == 4: result.err = reDisabled + of "freebsd": + when defined(freebsd): result.err = reDisabled else: result.parseErrors.addLine "cannot interpret as a bool: ", e.value of "cmd":