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)
|
2019-04-20 12:29:54 +04:00
|
|
|
- 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)
|
2019-04-20 14:27:32 +04:00
|
|
|
# Show versions and current switch
|
2019-04-20 02:31:49 +04:00
|
|
|
- opam --version
|
|
|
|
- printf '' | ocaml
|
2019-04-20 14:27:32 +04:00
|
|
|
- opam switch
|
2019-04-20 02:31:49 +04:00
|
|
|
|
|
|
|
default-job:
|
|
|
|
script:
|
2019-04-23 18:26:09 +04:00
|
|
|
- (cd src/lib_utils && opam install -y --build-test --working-dir .)
|
|
|
|
- (cd src/ligo && opam install -y --build-test --working-dir .)
|
|
|
|
- (cd src/ligo && dune build && dune build -p ligo && dune build @ligo-test)
|
2018-01-28 23:03:31 +04:00
|
|
|
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
|
2019-04-23 18:26:09 +04:00
|
|
|
# Used in the IDE
|
|
|
|
#- opam install -y user-setup
|
|
|
|
#- opam install -y merlin
|
|
|
|
#- opam install -y ocp-indent
|
|
|
|
#- opam user-setup install
|