Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
1eb09b9b
Commit
1eb09b9b
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[ci] enable opam pin minimal
parent
0667186e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+45
-18
45 additions, 18 deletions
.gitlab-ci.yml
opam
+1
-2
1 addition, 2 deletions
opam
with
46 additions
and
20 deletions
.gitlab-ci.yml
+
45
−
18
View file @
1eb09b9b
...
...
@@ -25,6 +25,7 @@ variables:
OCAML
:
"
4.11"
PUBLISH
:
"
no"
RELEASE
:
"
no"
WEEKLY
:
"
no"
################################################################################
### PREPARE
...
...
@@ -397,24 +398,50 @@ opam-pin-release:
variables
:
-
$RELEASE == "yes"
# TODO: Enable this rule later:
#
# opam-pin-minimal:
# variables:
# OPAMSOLVERTIMEOUT: "500"
# OPAMCRITERIA: "+count[version-lag,solution]"
# OPAMEXTERNALSOLVER: "builtin-0install"
# stage: prepare
# image: 'ocaml/opam:ubuntu-20.04-ocaml-$OCAML'
# script:
# - sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
# - opam --version
# - opam init --reinit -ni
# - opam pin . -n
# - opam depext frama-c --with-test
# - opam install --jobs 2 frama-c --with-test
# tags:
# - docker
.build_template
:
&opam_pin_minimal_template
stage
:
compatibility
image
:
'
ocaml/opam:ubuntu-20.04-ocaml-$OCAML'
variables
:
OPAMDOWNLOADJOBS
:
"
1"
OPAMERRLOGLEN
:
"
0"
OPAMSOLVERTIMEOUT
:
"
500"
OPAMPRECISETRACKING
:
"
1"
script
:
-
sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
-
opam --version
-
opam init --reinit -ni
-
sudo apt update
-
export OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
-
export OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
-
export OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
-
opam pin . -n -k path
-
opam update --depexts
-
opam depext frama-c
-
export OPAMCRITERIA="+removed,+count[version-lag,solution]"
-
export OPAMFIXUPCRITERIA="+removed,+count[version-lag,solution]"
-
export OPAMUPGRADECRITERIA="+removed,+count[version-lag,solution]"
-
export OPAMEXTERNALSOLVER="builtin-0install"
-
opam update --depexts
-
opam reinstall frama-c
timeout
:
2h
tags
:
-
docker
opam-pin-minimal
:
<<
:
*opam_pin_minimal_template
except
:
refs
:
-
schedules
variables
:
-
$WEEKLY == "yes"
when
:
manual
opam-pin-minimal-weekly
:
<<
:
*opam_pin_minimal_template
timeout
:
2h
only
:
variables
:
-
$WEEKLY == "yes"
# Distrib
...
...
This diff is collapsed.
Click to expand it.
opam
+
1
−
2
View file @
1eb09b9b
...
...
@@ -109,9 +109,8 @@ run-test: [
]
depends: [
"dune" {
(
>= "3.2.0"
& os!="macos")
| (>= "3.5.0" & os="macos") }
"dune" { >= "3.2.0" | (>= "3.5.0" & os="macos") }
"dune-configurator"
"dune-private-libs"
"dune-site"
( "alt-ergo-free" | "alt-ergo" )
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment