Added CI files.

This commit is contained in:
Branimir Karadžić
2017-04-02 19:30:42 -07:00
parent f475cf0623
commit b063875b85
5 changed files with 89 additions and 0 deletions

20
.appveyor.yml Normal file
View File

@@ -0,0 +1,20 @@
shallow_clone: true
os:
- Visual Studio 2015
environment:
matrix:
- TOOLSET: vs2013
- TOOLSET: vs2015
configuration:
- Debug
- Release
install:
- git clone https://github.com/bkaradzic/bx ..\bx
- ..\bx\tools\bin\windows\genie --with-tools %TOOLSET%
build:
project: .build/projects/$(TOOLSET)/bimg.sln

19
.editorconfig Normal file
View File

@@ -0,0 +1,19 @@
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
max_line_length = 100
insert_final_newline = true
trim_trailing_whitespace = true
[include/bgfx/c99/*.h]
indent_style = space
[*.ninja]
indent_style = space
[*.md]
trim_trailing_whitespace = false
max_line_length = 80

11
.gitattributes vendored Normal file
View File

@@ -0,0 +1,11 @@
*.c eol=lf
*.cpp eol=lf
*.h eol=lf
*.sc eol=lf
*.sh eol=lf
*.m eol=lf
*.mm eol=lf
*.md eol=lf
*.lua eol=lf
*.mk eol=lf
makefile eol=lf

7
.gitignore vendored Normal file
View File

@@ -0,0 +1,7 @@
.build
.debug
.DS_Store
.git
.svn
tags
.gdb_history

32
.travis.yml Normal file
View File

@@ -0,0 +1,32 @@
language: cpp
matrix:
include:
- compiler: gcc
os: linux
- compiler: clang
os: osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
before_script:
git clone https://github.com/bkaradzic/bx ../bx
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make build CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then make build; fi
branches:
only:
- master
notifications:
email: false
osx_image: xcode7.3