Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ocaml/ocaml-ci-scripts
Skeletons for CI scripts
https://github.com/ocaml/ocaml-ci-scripts
Last synced: 2 days ago
JSON representation
Skeletons for CI scripts
- Host: GitHub
- URL: https://github.com/ocaml/ocaml-ci-scripts
- Owner: ocaml
- License: isc
- Created: 2014-10-24T18:03:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-10T16:16:57.000Z (almost 2 years ago)
- Last Synced: 2024-05-09T12:16:49.580Z (5 months ago)
- Language: OCaml
- Homepage:
- Size: 399 KB
- Stars: 101
- Watchers: 10
- Forks: 62
- Open Issues: 28
-
Metadata Files:
- Readme: README-appveyor.md
- Changelog: CHANGES.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Appveyor CI scripts
Instructions:
1. Create an `opam` file at the root of your project. If you use opam
1.2, you can simply do `opam pin add PKG .` -- this will open an
editor and propose you a template.2. Copy [appveyor.yml](https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/appveyor.yml)
at the root of your project.3. Enable Appveyor runs on
https://ci.appveyor.com/projects (sign in with your
Github account and click on `+` on the top pane).And that's it!
## Options
Most of the options detailed in [TravisCI scripts](/README-travis.md)
are valid.### OPAM_SWITCH
`OCAML_VERSION` is however handled differently. There are currently
three
[Windows ports of OCaml](https://github.com/ocaml/ocaml/blob/trunk/README.win32.adoc):- Native Microsoft (msvc)
- Native Mingw-w64
- CygwinEach variant is available in a 32-bit and 64-bit version.
The native mingw-w64 port is supported through cygwin's
[mingw-w64 cross compiler](http://mingw-w64.org/doku.php/download/cygwin),
the msvc version through
[Visual Studio Community 2015](https://www.appveyor.com/docs/installed-software/#visual-studio-2015).
The cygwin port is currently not supported by these scripts.You can choose between different ports and versions through the
`OPAM_SWITCH` variable, e.g:```yaml
environment:
matrix:
- OPAM_SWITCH: 4.04.0+msvc32
- OPAM_SWITCH: 4.03.0+mingw64c
# syntax: ${OCAML_VERSION}+${PORT}${WORD_SIZE}c?
```Some versions are available as pre-compiled binaries to speed up the
build process (the 'c'-suffix), but not all.If you don't specify `OPAM_SWITCH` manually, a recent, pre-compiled
mingw port (64-bit) is used. The build instructions of many opam
packages are only compatible with gcc.### Other environment variables
#### CYG_ROOT
Cygwin is used by `ocaml-ci-scripts` and nearly all opam packages
depend on it. By default, the 64-bit version is used. You can switch
to the 32-bit version by setting `CYG_ROOT` to `C:\cygwin`.#### CYG_MIRROR
Cygwin must be updated during the install step. The mirror for this
task must be specified manually. If the mirror that is normally used
goes offline or becomes too slow, you can point `CYG_MIRROR` to
another [supported mirror](https://cygwin.com/mirrors.lst).#### CYG_PKGS
If you need additional packages from cygwin, you can add them to
`CYG_PKGS` (comma separated). By default, the `mingw64-x86_64`
toolchain is updated. But for most use cases, you should rely on
[depext-cygwinports](https://fdopen.github.io/opam-repository-mingw/depext-cygwin/).