Skip to content

Commit ecbcba8

Browse files
committed
add ci settings
1 parent e9cb61a commit ecbcba8

11 files changed

+52
-4
lines changed

.travis.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: c
2+
sudo: required
3+
dist: trusty
4+
services:
5+
- docker
6+
install:
7+
- docker-compose build
8+
script:
9+
- docker-compose run ocaml bash -e .travis/test
10+
matrix:
11+
fast_finish: true
12+
notifications:
13+
email: false
14+

.travis/test

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
eval $(opam config env)
4+
5+
make clean
6+
make test

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM holyshared/ocaml:latest
2+
ENV DEBIAN_FRONTEND noninteractive
3+
MAINTAINER Noritaka Horio <[email protected]>
4+
RUN sudo -u develop sh -c 'opam install -y jbuilder sexplib ounit'
5+
WORKDIR project
6+
COPY ogen.opam ogen.opam
7+
COPY bin bin
8+
COPY src src
9+
COPY tests tests
10+
COPY Makefile Makefile
11+
COPY .travis .travis
12+
RUN sudo chown -R develop:develop ogen.opam bin src tests Makefile .travis

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# ocaml-gen
1+
# ogen
2+
3+
[![Build Status](https://travis-ci.org/holyshared/ogen.svg?branch=master)](https://travis-ci.org/holyshared/ogen)

bin/ogen.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
open Arg
2-
open Project
2+
open Ogen_project
33

44
(* Name of library *)
55
let name = ref ""

docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '2'
2+
services:
3+
ocaml:
4+
build: .
5+
image: ogen/build:latest
6+
tty: true
7+
cap_add:
8+
- ALL
9+
cap_drop:
10+
- NET_ADMIN
11+
- SYS_ADMIN

ogen.opam

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
opam-version: "1.2"
2+
name: "ogen"
3+
version: "0.1.0"
24
maintainer: "[email protected]"
35
authors: ["Noritaka Horio"]
4-
6+
license: "MIT"
57
homepage: "https://github.com/holyshared/ogen"
68
bug-reports: "https://github.com/holyshared/ogen/issues"
79
dev-repo: "https://github.com/holyshared/ogen.git"
@@ -16,4 +18,5 @@ build-test: [
1618

1719
depends: [
1820
"jbuilder" {build}
21+
"sexplib" {>= "0.9.2"}
1922
]
File renamed without changes.

test/jbuild renamed to tests/jbuild

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(executable (
44
(name test)
5-
(libraries (ounit ogen.project))
5+
(libraries (oUnit ogen.project))
66
))
77

88
(alias
File renamed without changes.

0 commit comments

Comments
 (0)