Travis CI integration
This commit is contained in:
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
language: c
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
- gcc
|
||||||
|
before_script:
|
||||||
|
- sudo apt-get update -q
|
||||||
|
- sudo apt-get install nodejs
|
||||||
|
script: make
|
4
Makefile
4
Makefile
@@ -7,9 +7,9 @@ c:
|
|||||||
@node ./src/transpile.js
|
@node ./src/transpile.js
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@gcc -Weverything -Werror -Wno-padded $(FILES) && ./a.out
|
@gcc -std=c99 -Werror -Wno-padded $(FILES) -lm && ./a.out
|
||||||
@rm a.out
|
@rm a.out
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
@gcc -ggdb $(FILES) && lldb ./a.out
|
@gcc -ggdb $(FILES) -lm && lldb ./a.out
|
||||||
@rm a.out
|
@rm a.out
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Reference in New Issue
Block a user