From 43ebc969ec93ee28f24e193a2ee2b57020bf79ef Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 Mar 2019 10:26:16 +0100 Subject: [PATCH] GitLab does not have a sudo command --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 212bb6ab7..87856e8f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,9 @@ before_script: - apt-get update -qq - apt-get -y -qq install libhidapi-dev libcap-dev - 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 - - sudo mv opam-2.0.1-x86_64-linux /usr/local/bin/opam + - mkdir ~/opam-bin + - mv opam-2.0.1-x86_64-linux ~/opam-bin/opam + - export PATH="$HOME/opam-bin/opam${PATH:+:}${PATH:-}" default-job: script: