Added tests to build, fixed some unused variables.
This commit is contained in:
parent
3c6af09b21
commit
22b331dbed
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/_build/
|
||||
/dune-project
|
@ -34,12 +34,22 @@ before_script:
|
||||
# paths:
|
||||
# - src/ligo/bin/cli.ml
|
||||
|
||||
local-dune-job:
|
||||
script:
|
||||
- vendors/ligo-opam-repository/rewrite-local-opam-repository.sh
|
||||
- opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository/"
|
||||
- opam install -y --build-test --deps-only ./src/
|
||||
- (dune build -p ligo)
|
||||
# TODO: also try instead from time to time:
|
||||
#- (cd ./src/; dune build -p ligo)
|
||||
dune build -p ligo
|
||||
|
||||
local-repo-job:
|
||||
script:
|
||||
- vendors/ligo-opam-repository/rewrite-local-opam-repository.sh
|
||||
- opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository/"
|
||||
#--build-test
|
||||
- opam install -y -v ligo
|
||||
- opam install -y ligo
|
||||
|
||||
remote-repo-job:
|
||||
script:
|
||||
|
3
src/.gitignore
vendored
3
src/.gitignore
vendored
@ -1,5 +1,4 @@
|
||||
_build/*
|
||||
*/_build
|
||||
_build/
|
||||
.merlin
|
||||
*/.merlin
|
||||
*.install
|
||||
|
@ -22,7 +22,7 @@ let parse_file (source: string) : AST_Raw.t result =
|
||||
(fun () -> open_in pp_input) in
|
||||
let lexbuf = Lexing.from_channel channel in
|
||||
let module Lexer = Lexer.Make(LexToken) in
|
||||
let Lexer.{read ; close} =
|
||||
let Lexer.{read ; close ; _} =
|
||||
Lexer.open_token_stream None in
|
||||
specific_try (fun () -> function
|
||||
| Parser.Error -> (
|
||||
@ -59,7 +59,7 @@ let parse_file (source: string) : AST_Raw.t result =
|
||||
let parse_string (s:string) : AST_Raw.t result =
|
||||
let lexbuf = Lexing.from_string s in
|
||||
let module Lexer = Lexer.Make(LexToken) in
|
||||
let Lexer.{read ; close} =
|
||||
let Lexer.{read ; close ; _} =
|
||||
Lexer.open_token_stream None in
|
||||
specific_try (fun () -> function
|
||||
| Parser.Error -> (
|
||||
@ -83,7 +83,7 @@ let parse_string (s:string) : AST_Raw.t result =
|
||||
let parse_expression (s:string) : AST_Raw.expr result =
|
||||
let lexbuf = Lexing.from_string s in
|
||||
let module Lexer = Lexer.Make(LexToken) in
|
||||
let Lexer.{read ; close} =
|
||||
let Lexer.{read ; close; _} =
|
||||
Lexer.open_token_stream None in
|
||||
specific_try (fun () -> function
|
||||
| Parser.Error -> (
|
||||
|
2
vendors/ligo-opam-repository
vendored
2
vendors/ligo-opam-repository
vendored
@ -1 +1 @@
|
||||
Subproject commit fbfa642ebd4d55ec1a33cbdc75093c0681ddd3ce
|
||||
Subproject commit c794c6169960fd6d625ec2eb292f4136ec276f99
|
2
vendors/ligo-utils
vendored
2
vendors/ligo-utils
vendored
@ -1 +1 @@
|
||||
Subproject commit 6ccdf0bf9e69585197d97b2f023590aeb03076de
|
||||
Subproject commit 3a7d2a85f1792105a375e35aa03afa137b29a9af
|
Loading…
Reference in New Issue
Block a user