mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
sudo: false
|
|
language: c
|
|
os:
|
|
- linux
|
|
- osx
|
|
dist: trusty
|
|
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- os: osx
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libcurl4-openssl-dev
|
|
- libsdl1.2-dev
|
|
- libgc-dev
|
|
- libsfml-dev
|
|
|
|
before_install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi
|
|
|
|
before_script:
|
|
- set -e
|
|
- git clone --depth 1 https://github.com/nim-lang/csources.git
|
|
- cd csources
|
|
- sh build.sh
|
|
- cd ..
|
|
- sed -i -e 's,cc = gcc,cc = clang,' config/nim.cfg
|
|
- export PATH=$(pwd)/bin:$PATH
|
|
script:
|
|
- nim c koch
|
|
- ./koch boot
|
|
- ./koch boot -d:release
|
|
- ./koch nimble
|
|
- nim e tests/test_nimscript.nims
|
|
- nimble install zip -y
|
|
- nimble install opengl
|
|
- nimble install sdl1
|
|
- nimble install jester@#head
|
|
- nimble install niminst
|
|
- nim c --taintMode:on -d:nimCoroutines tests/testament/tester
|
|
- tests/testament/tester --pedantic all -d:nimCoroutines
|
|
- ./koch web
|
|
- ./koch csource
|