ligo/.gitlab-ci.yml

30 lines
1.0 KiB
YAML
Raw Normal View History

2019-04-20 02:31:49 +04:00
before_script:
- apt-get update -qq
2019-04-20 03:00:07 +04:00
- apt-get -y -qq install libhidapi-dev libcap-dev libev-dev bubblewrap
2019-04-20 02:31:49 +04:00
- 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
- chmod +x /usr/local/bin/opam
- export PATH="/usr/local/bin${PATH:+:}${PATH:-}"
- echo "$PATH"
- printf '' | opam init
2019-04-20 03:00:07 +04:00
- eval $(opam config env)
2019-04-20 13:09:07 +04:00
- printf '' | opam switch create toto ocaml-base-compiler.4.06.1
2019-04-20 02:31:49 +04:00
- eval $(opam config env)
- opam repository add new-tezos-opam-repository https://gitlab.com/gabriel.alfour/new-tezos-opam-repository.git
2019-04-20 02:31:49 +04:00
- eval $(opam config env)
- opam --version
- printf '' | ocaml
default-job:
script:
2019-04-20 03:00:07 +04:00
- (cd src/lib_utils && opam install -y --working-dir .)
- (cd src/ligo && opam install -y --working-dir .)
- (cd src/ligo && dune build && dune build -p ligo && dune build @ligo-test)
artifacts:
paths:
2019-04-20 02:31:49 +04:00
- src/ligo/bin/cli.ml
2017-03-09 17:43:59 +04:00
2019-04-20 02:31:49 +04:00
install-from-repo-job:
2018-07-05 14:08:55 +04:00
script:
2019-04-20 02:41:29 +04:00
- opam install -y ligo