Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: c | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- ninja-build | ||
|
||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi | ||
|
||
install: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi | ||
|
||
script: | ||
- scripts/initbuild.sh ninja | ||
- scripts/test.sh | ||
- scripts/initbuild.sh make-concurrent | ||
- scripts/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: "win#{build}" | ||
|
||
image: Visual Studio 2015 | ||
|
||
init: | ||
- git config --global core.autocrlf input | ||
- cmake --version | ||
- msbuild /version | ||
|
||
shallow_clone: true | ||
|
||
clone_folder: c:\projects\flatcc | ||
|
||
platform: | ||
- Win32 | ||
- x64 | ||
|
||
configuration: | ||
- Debug | ||
- Release | ||
|
||
skip_tags: true | ||
|
||
before_build: | ||
- echo Running cmake... | ||
- cd c:\projects\flatcc | ||
- mkdir build\MSVC | ||
- cd build\MSVC | ||
- if "%platform%"=="Win32" cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=%configuration% ..\.. | ||
- if "%platform%"=="x64" cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=%configuration% ..\.. | ||
|
||
build: | ||
parallel: true # enable MSBuild parallel builds | ||
project: c:\projects\flatcc\build\MSVC\FlatCC.sln | ||
|
||
test_script: | ||
- ctest -C "%configuration%" -VV | ||
|