Skip to content

Commit bf52b45

Browse files
authored
See what's up with Windows CI. (#52)
* Fix Windows CI.
1 parent 43409a9 commit bf52b45

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.circleci/config.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ orbs:
3535
steps:
3636
- run:
3737
name: Init opam
38-
shell: C:/tools/cygwin/bin/bash.exe --noprofile --norc -eo pipefail
38+
shell: C:/tools/cygwin/bin/bash.exe -leo pipefail
3939
command: |
40-
export PATH=$PATH:/usr/local/bin:/usr/bin
4140
[ -d ~/.opam ] || opam init default 'https://github.com/fdopen/opam-repository-mingw.git#opam2' --bare --disable-sandboxing
4241
create_switch:
4342
steps:
4443
- run:
4544
name: Create opam switch
46-
shell: C:/tools/cygwin/bin/bash.exe --noprofile --norc -eo pipefail
45+
shell: C:/tools/cygwin/bin/bash.exe -leo pipefail
4746
environment:
4847
PATH: /usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
4948
command: |
49+
cd /cygdrive/c/Users/circleci/project
5050
[ -d _opam ] || opam switch create . ocaml-variants.4.06.1+mingw64c --deps-only --yes -vvv
5151
5252
executors:
@@ -206,39 +206,42 @@ jobs:
206206
at: ./artifacts
207207
- run:
208208
name: Check node / npm version
209-
shell: C:/tools/cygwin/bin/bash.exe --noprofile --norc -eo pipefail
209+
shell: C:/tools/cygwin/bin/bash.exe -leo pipefail
210210
environment:
211211
PATH: /cygdrive/c/Program Files/nodejs:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
212212
command: |
213+
cd /cygdrive/c/Users/circleci/project
213214
pwd
214215
ls -l
215216
echo "Versions"
216217
node --version
217218
npm --version
218219
- restore_cache:
219220
keys:
220-
- v0-opam-cache-{{ arch }}
221+
- v2-opam-cache-{{ arch }}
221222
- opam_windows/init
222223
- opam_windows/create_switch
223224
- run:
224225
name: Install opam dev dependencies
225-
shell: C:/tools/cygwin/bin/bash.exe --noprofile --norc -eo pipefail
226+
shell: C:/tools/cygwin/bin/bash.exe -leo pipefail
226227
environment:
227228
PATH: /cygdrive/c/Program Files/nodejs:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
228229
command: |
230+
cd /cygdrive/c/Users/circleci/project
229231
eval $(opam env)
230232
opam install reason.3.6.0 dune.1.11.4 ocaml-migrate-parsetree.1.3.1 ppx_tools_versioned uri --yes | cat
231233
- save_cache:
232-
key: v0-opam-cache-{{ arch }}
234+
key: v2-opam-cache-{{ arch }}
233235
paths:
234236
- C:/tools/cygwin/home/circleci/.opam
235237
- _opam
236238
- run:
237239
name: Build & Test
238-
shell: C:/tools/cygwin/bin/bash.exe --noprofile --norc -eo pipefail
240+
shell: C:/tools/cygwin/bin/bash.exe -leo pipefail
239241
environment:
240242
PATH: /cygdrive/c/Program Files/nodejs:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
241243
command: |
244+
cd /cygdrive/c/Users/circleci/project
242245
eval $(opam env)
243246
dune build
244247
./_build/install/default/bin/rescript-editor-support.exe --help

0 commit comments

Comments
 (0)