ligo/.gitlab-ci.yml

34 lines
1.2 KiB
YAML
Raw Normal View History

2019-04-20 02:31:49 +04:00
before_script:
- apt-get update -qq
2019-04-23 15:59:10 +04:00
# 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
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)
# Show versions and current switch
2019-04-20 02:31:49 +04:00
- opam --version
- printf '' | ocaml
- opam switch
2019-04-20 02:31:49 +04:00
default-job:
script:
2019-04-20 14:31:56 +04:00
- (cd src/lib_utils && ls -a && opam install -y --working-dir .)
- (cd src/ligo && ls -a && opam install -y --working-dir .)
- (cd src/ligo && ls -a && 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 14:03:06 +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