Commit 0d63910c authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Try to fix 'Operation not permitted'

parent 5bd96135
Pipeline #4047 passed with stages
in 43 minutes and 9 seconds
...@@ -14,9 +14,9 @@ variables: ...@@ -14,9 +14,9 @@ variables:
stages: stages:
- deps - deps
- cabal
- test - test
- docs - docs
- cabal
deps: deps:
stage: deps stage: deps
...@@ -24,14 +24,13 @@ deps: ...@@ -24,14 +24,13 @@ deps:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- target - target
script: script:
- echo "Building the project from '$CI_PROJECT_DIR'" - echo "Building the project from '$CI_PROJECT_DIR'"
- nix-shell && export LC_ALL=C.UTF-8 && stack -v build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast - hpack
- nix-shell --run "LC_ALL=C.UTF-8 stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast"
docs: docs:
stage: docs stage: docs
...@@ -39,18 +38,18 @@ docs: ...@@ -39,18 +38,18 @@ docs:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- target - target
script: script:
- nix-shell && export LC_ALL=C.UTF-8 && stack build --no-terminal --haddock --no-haddock-deps --fast - hpack
- nix-shell --run "LC_ALL=C.UTF-8 stack build --no-terminal --haddock --no-haddock-deps --fast"
- cp -R "$(stack path --local-install-root)"/doc ./output - cp -R "$(stack path --local-install-root)"/doc ./output
artifacts: artifacts:
paths: paths:
- ./output - ./output
expire_in: 1 week expire_in: 1 week
allow_failure: true
test: test:
stage: test stage: test
...@@ -58,13 +57,12 @@ test: ...@@ -58,13 +57,12 @@ test:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- target - target
script: script:
- nix-shell && export LC_ALL=C.UTF-8 && stack test --no-terminal --fast - hpack
- nix-shell --run "LC_ALL=C.UTF-8 stack test --no-terminal --fast"
# TOOO # TOOO
...@@ -74,13 +72,12 @@ cabal: ...@@ -74,13 +72,12 @@ cabal:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- .local/ - dist-newstyle/
- .cabal/
- target - target
script: script:
- nix-shell && export LC_ALL=C.UTF-8 && hpack && cabal v2-build --dry-run - hpack
- nix-shell --run "LC_ALL=C.UTF-8 cabal v2-update 'hackage.haskell.org,2023-04-07T08:35:43Z' && cabal v2-build --dry-run"
allow_failure: true
...@@ -31,6 +31,7 @@ RUN apt-get update && \ ...@@ -31,6 +31,7 @@ RUN apt-get update && \
locales \ locales \
lsb-release \ lsb-release \
software-properties-common \ software-properties-common \
strace \
sudo \ sudo \
wget \ wget \
vim \ vim \
...@@ -46,7 +47,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] ...@@ -46,7 +47,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN set -o pipefail && \ RUN set -o pipefail && \
bash <(curl -L https://releases.nixos.org/nix/nix-2.15.0/install) --no-daemon && \ bash <(curl -L https://releases.nixos.org/nix/nix-2.15.0/install) --no-daemon && \
locale-gen en_US.UTF-8 locale-gen en_US.UTF-8 && chown root -R /nix
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV USER=root ENV USER=root
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment