Skip to content

Commit

Permalink
Ref nim-lang#12103 - adds FreeBSD CI
Browse files Browse the repository at this point in the history
  • Loading branch information
euantorano committed Nov 29, 2019
1 parent 7e6e399 commit ac9873d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .builds/freebsd.yml
Original file line number Diff line number Diff line change
@@ -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 <rumpf_a@web.de>
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ megatest.nim
/outputGotten.txt

/lib/pure/*.js

!/.builds/
2 changes: 2 additions & 0 deletions testament/specs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit ac9873d

Please sign in to comment.