Browse Source

Added CI files.

Branimir Karadžić 9 years ago
parent
commit
b063875b85
5 changed files with 89 additions and 0 deletions
  1. 20 0
      .appveyor.yml
  2. 19 0
      .editorconfig
  3. 11 0
      .gitattributes
  4. 7 0
      .gitignore
  5. 32 0
      .travis.yml

+ 20 - 0
.appveyor.yml

@@ -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 - 0
.editorconfig

@@ -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 - 0
.gitattributes

@@ -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 - 0
.gitignore

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

+ 32 - 0
.travis.yml

@@ -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