Merge branch 'master' of gitlab.com:gabriel.alfour/tezos

This commit is contained in:
Galfour 2019-04-23 15:17:39 +00:00
commit f68d592653
3 changed files with 24 additions and 16 deletions

View File

@ -1,6 +1,7 @@
before_script: before_script:
- apt-get update -qq - apt-get update -qq
- apt-get -y -qq install libhidapi-dev libcap-dev libev-dev bubblewrap # rsync is needed by opam to sync a package installed from a local directory with the copy in ~/.opam
- apt-get -y -qq install rsync libhidapi-dev libcap-dev libev-dev bubblewrap
- wget https://github.com/ocaml/opam/releases/download/2.0.1/opam-2.0.1-x86_64-linux -O opam-2.0.1-x86_64-linux - wget https://github.com/ocaml/opam/releases/download/2.0.1/opam-2.0.1-x86_64-linux -O opam-2.0.1-x86_64-linux
- cp opam-2.0.1-x86_64-linux /usr/local/bin/opam - cp opam-2.0.1-x86_64-linux /usr/local/bin/opam
- chmod +x /usr/local/bin/opam - chmod +x /usr/local/bin/opam
@ -19,9 +20,9 @@ before_script:
default-job: default-job:
script: script:
- (cd src/lib_utils && ls -a && opam install -y --working-dir .) - (cd src/lib_utils && opam install -y --build-test --working-dir .)
- (cd src/ligo && ls -a && opam install -y --working-dir .) - (cd src/ligo && opam install -y --build-test --working-dir .)
- (cd src/ligo && ls -a && dune build && dune build -p ligo && dune build @ligo-test) - (cd src/ligo && dune build && dune build -p ligo && dune build @ligo-test)
artifacts: artifacts:
paths: paths:
- src/ligo/bin/cli.ml - src/ligo/bin/cli.ml
@ -30,3 +31,8 @@ default-job:
install-from-repo-job: install-from-repo-job:
script: script:
- opam install -y ligo - opam install -y ligo
# Used in the IDE
#- opam install -y user-setup
#- opam install -y merlin
#- opam install -y ocp-indent
#- opam user-setup install

View File

@ -1,3 +1,4 @@
name: "ligo"
opam-version: "2.0" opam-version: "2.0"
version: "1.0" version: "1.0"
maintainer: "gabriel.alfour@gmail.com" maintainer: "gabriel.alfour@gmail.com"
@ -13,11 +14,12 @@ depends: [
"menhir" "menhir"
"ppx_let" "ppx_let"
"tezos-utils" "tezos-utils"
"getopt"
"yojson" "yojson"
"alcotest" { with-test }
] ]
build: [ build: [
[ "dune" "build" "-p" name "-j" jobs ] [ "dune" "build" "-p" name "-j" jobs ]
# needed in the repository, but must not be present in the local ligo.opam [ "mv" "src/ligo/ligo.install" "." ]
] ]
url { url {

View File

@ -9,9 +9,9 @@
(library (library
(name parser_pascaligo) (name parser_pascaligo)
(public_name ligo.parser.pascaligo) (public_name ligo.parser.pascaligo)
(modules AST FQueue Markup pascaligo Utils Version Lexer Error Parser ParserLog LexToken)
(modules_without_implementation Error) (modules_without_implementation Error)
(libraries (libraries
getopt
hex hex
str str
uutf uutf
@ -23,17 +23,17 @@
;; Les deux directives (rule) qui suivent sont pour le dev local. ;; Les deux directives (rule) qui suivent sont pour le dev local.
;; Il suffit de faire "dune build Parser.exe" pour avoir un Parser.exe dans le dossier. ;; Il suffit de faire "dune build Parser.exe" pour avoir un Parser.exe dans le dossier.
;; Pour le purger, il faut faire "dune clean". ;; Pour le purger, il faut faire "dune clean".
(rule ;(rule
(targets Parser.exe) ; (targets Parser.exe)
(deps ParserMain.exe) ; (deps ParserMain.exe)
(action (copy ParserMain.exe Parser.exe)) ; (action (copy ParserMain.exe Parser.exe))
(mode promote-until-clean)) ; (mode promote-until-clean))
(rule ;(rule
(targets Lexer.exe) ; (targets Lexer.exe)
(deps LexerMain.exe) ; (deps LexerMain.exe)
(action (copy LexerMain.exe Lexer.exe)) ; (action (copy LexerMain.exe Lexer.exe))
(mode promote-until-clean)) ; (mode promote-until-clean))
(rule (rule
(targets Version.ml) (targets Version.ml)