Skip to content

Commit 02ddc06

Browse files
committed
Prepare CI (disable nix tests)
1 parent 61098d8 commit 02ddc06

File tree

5 files changed

+24
-153
lines changed

5 files changed

+24
-153
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- 414-LTS
88
schedule:
99
# Prime the caches every Monday
1010
- cron: 0 1 * * MON
@@ -22,9 +22,6 @@ jobs:
2222
- windows-latest
2323
ocaml-compiler:
2424
- "4.14"
25-
include:
26-
- os: ubuntu-latest
27-
ocaml-compiler: 5.1.x
2825

2926
runs-on: ${{ matrix.os }}
3027

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Changelog check
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [414-LTS]
66
types: [opened, synchronize, reopened, labeled, unlabeled]
77

88
jobs:

.github/workflows/nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
push:
55
branches:
6-
- master
6+
- 414-LTS
77
jobs:
88
# tests:
99
# runs-on: ubuntu-latest

flake.lock

Lines changed: 15 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
inputs = {
33
flake-utils.url = "github:numtide/flake-utils";
4-
nixpkgs.url = "github:nix-ocaml/nix-overlays";
5-
merlin5_2 = {
6-
url = "github:ocaml/merlin/main";
7-
flake = false;
8-
};
9-
merlin5_1 = {
10-
url = "github:ocaml/merlin/501";
4+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
5+
merlin4_14 = {
6+
url = "github:ocaml/merlin/v4.18-414";
117
flake = false;
128
};
139
};
@@ -30,7 +26,7 @@
3026
});
3127
dune-release =
3228
prev.dune-release.overrideAttrs (_: { doCheck = false; });
33-
ocamlPackages = prev.ocamlPackages.overrideScope' (oself: osuper:
29+
ocamlPackages = prev.ocamlPackages.overrideScope (oself: osuper:
3430
let
3531
fixPreBuild = o: {
3632
propagatedBuildInputs = o.propagatedBuildInputs ++ [ oself.pp ];
@@ -58,33 +54,24 @@
5854
in rec {
5955
jsonrpc = buildDunePackage (basePackage // {
6056
pname = "jsonrpc";
61-
doCheck = false;
6257
propagatedBuildInputs = with pkgs.ocamlPackages; [ ];
6358
});
6459

6560
lsp = buildDunePackage (basePackage // {
6661
pname = "lsp";
67-
doCheck = false;
6862
propagatedBuildInputs = with pkgs.ocamlPackages; [
6963
jsonrpc
7064
yojson
7165
ppx_yojson_conv_lib
7266
uutf
7367
];
7468
checkInputs = let p = pkgs.ocamlPackages;
75-
in [
76-
p.stdune
77-
p.cinaps
78-
p.ppx_expect
79-
p.ppx_yojson_conv
80-
(ocamlformat pkgs)
81-
];
69+
in [ p.cinaps p.ppx_expect p.ppx_yojson_conv (ocamlformat pkgs) ];
8270
});
8371

8472
ocaml-lsp = with pkgs.ocamlPackages;
8573
buildDunePackage (basePackage // {
8674
pname = package;
87-
doCheck = false;
8875
checkInputs = let p = pkgs.ocamlPackages;
8976
in [
9077
p.ppx_expect
@@ -137,64 +124,21 @@
137124
overlays = [ (ocamlVersionOverlay ocaml) (overlay merlin) ];
138125
inherit system;
139126
};
140-
<<<<<<< HEAD
141-
pkgs_5_1 =
142-
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_1) inputs.merlin5_1;
143-
pkgs_5_2 =
144-
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_2) inputs.merlin5_2;
145-
localPackages_5_1 = makeLocalPackages pkgs_5_1;
146-
localPackages_5_2 = makeLocalPackages pkgs_5_2;
147-
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
148-
pkgs_4_14 =
149-
makeNixpkgs (ocaml: ocaml.ocamlPackages_4_14) inputs.merlin4_14;
150-
pkgs_5_2 =
151-
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_2) inputs.merlin5_2;
152-
localPackages_4_14 = makeLocalPackages pkgs_4_14;
153-
localPackages_5_2 = makeLocalPackages pkgs_5_2;
154-
=======
155127
pkgs_4_14 =
156128
makeNixpkgs (ocaml: ocaml.ocamlPackages_4_14) inputs.merlin4_14;
157-
pkgs_5_1 =
158-
makeNixpkgs (ocaml: ocaml.ocamlPackages_5_1) inputs.merlin5_1;
159129
localPackages_4_14 = makeLocalPackages pkgs_4_14;
160-
localPackages_5_1 = makeLocalPackages pkgs_5_1;
161-
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
162130
devShell = localPackages: nixpkgs:
163131
nixpkgs.mkShell {
164132
buildInputs = [ nixpkgs.ocamlPackages.utop ];
165-
inputsFrom =
166-
builtins.map (x: x.overrideAttrs (p: n: { doCheck = true; }))
167-
(builtins.attrValues localPackages);
133+
inputsFrom = builtins.attrValues localPackages;
168134
};
169135
in {
170-
<<<<<<< HEAD
171-
packages = (localPackages_5_2 // {
172-
default = localPackages_5_2.ocaml-lsp;
173-
ocaml_5_1 = localPackages_5_1;
174-
});
175-
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
176-
packages =
177-
(localPackages_5_2 // { default = localPackages_5_2.ocaml-lsp; });
178-
=======
179136
packages =
180137
(localPackages_4_14 // { default = localPackages_4_14.ocaml-lsp; });
181-
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
182138

183139
devShells = {
184-
<<<<<<< HEAD
185-
default = devShell localPackages_5_2 pkgs_5_2;
186-
||||||| 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
187-
ocaml4_11 = devShell localPackages_4_14 pkgs_4_14;
188-
189-
default = devShell localPackages_5_2 pkgs_5_2;
190-
=======
191140
default = devShell localPackages_4_14 pkgs_4_14;
192141

193-
ocaml5_1 = devShell localPackages_5_1 pkgs_5_1;
194-
>>>>>>> parent of 4e741568 (Compatibility with merlin-lib 5.1-502 (#1233))
195-
196-
ocaml5_1 = devShell localPackages_5_1 pkgs_5_1;
197-
198142
release = pkgsWithoutOverlays.mkShell {
199143
buildInputs = [ pkgsWithoutOverlays.dune-release ];
200144
};

0 commit comments

Comments
 (0)