https://github.com/fgimenez/ocaml-travis-runner
https://github.com/fgimenez/ocaml-travis-runner
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fgimenez/ocaml-travis-runner
- Owner: fgimenez
- Created: 2016-11-11T13:36:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T17:40:51.000Z (over 9 years ago)
- Last Synced: 2025-02-01T10:45:41.273Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple containerized environment to reproduce travis builds for opam packages using the [.travis-docker.sh script from ocaml/ocaml-ci-scripts](https://github.com/ocaml/ocaml-ci-scripts/blob/master/.travis-docker.sh). It creates a "docker in docker" server instance and a docker client that clients to it and acts as the travis runner, creating the container in which the build is executed.
As a first step you need to create a file with all the required environment variables:
```
$ cat <> env.sh
export DISTRO=ubuntu-16.04
export OCAML_VERSION=4.02.3
export PACKAGE=ocaml-uri
export POST_INSTALL_HOOK="OPAMYES=true opam depext -i react ssl lwt"
export REVDEPS="cohttp git github irmin sociaml-facebook-api sociaml-oauth-client sociaml-tumblr-api spotify-web-api syndic"
...
```
At least `DISTRO`, `OCAML_VERSION` and `PACKAGE` are required. Then, from the target project root you can execute the `run.sh` script in this repo passing the previously created `env.sh` file path as parameter:
```
/path/to/ocaml-travis-runner/run.sh /path/to/env.sh
```