This commit is contained in:
gingerBill
2019-02-06 16:07:32 +00:00
6 changed files with 70 additions and 15 deletions

18
.travis.yml Normal file
View File

@@ -0,0 +1,18 @@
language: cpp
git:
depth: false
os:
- linux
- osx
compiler:
- clang
script:
- make release
- ./odin run examples/demo/demo.odin
- ./odin check examples/demo/demo.odin -vet
notifications:
email: false

View File

@@ -13,6 +13,13 @@
<a href="https://github.com/odin-lang/odin/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/odin-lang/odin.svg">
</a>
<br>
<a href="https://ci.appveyor.com/project/ThisDrunkDane/odin-vf0ap">
<img src="https://ci.appveyor.com/api/projects/status/qss6l921c0eu85u6/branch/master?svg=true">
</a>
<a href="https://travis-ci.org/odin-lang/Odin">
<img src="https://travis-ci.org/odin-lang/Odin.svg?branch=master">
</a>
</p>
# The Odin Programming Language

19
appveyor.yml Normal file
View File

@@ -0,0 +1,19 @@
image:
- Visual Studio 2017
shallow_clone: true
platform: x64
install:
- cd bin
- appveyor DownloadFile https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip
- 7z x llvm-binaries.zip > nul
- cd ..
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- ./build_ci.bat
test_script:
- odin run examples/demo/demo.odin
- odin check examples/demo/demo.odin -vet

View File

@@ -46,5 +46,4 @@ cl %compiler_settings% "src\main.cpp" ^
del *.obj > NUL 2> NUL
:end_of_build
:end_of_build

24
build_ci.bat Normal file
View File

@@ -0,0 +1,24 @@
@echo off
set exe_name=odin.exe
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR- -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
set compiler_warnings= ^
-W4 -WX ^
-wd4100 -wd4101 -wd4127 -wd4189 ^
-wd4201 -wd4204 ^
-wd4456 -wd4457 -wd4480 ^
-wd4512
set compiler_includes=
set libs= ^
kernel32.lib
set linker_flags= -incremental:no -opt:ref -subsystem:console -debug
set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
set linker_settings=%libs% %linker_flags%
cl %compiler_settings% "src\main.cpp" ^
/link %linker_settings% -OUT:%exe_name% ^

View File

@@ -1,24 +1,12 @@
package main
import "core:fmt"
import "core:strconv"
import "core:mem"
import "core:bits"
import "core:hash"
import "core:math"
import "core:math/rand"
import "core:os"
import "core:sort"
import "core:strings"
import "core:types"
import "core:unicode/utf16"
import "core:unicode/utf8"
import "core:c"
import "core:runtime"
when os.OS == "windows" {
import "core:runtime"
import "core:thread"
import "core:sys/win32"
}
@(link_name="general_stuff")