Skip to content

Commit 028d1f6

Browse files
authored
Merge pull request #21 from reasonml/mb-opam
Set up opam workflow
2 parents f77872c + 1c61272 commit 028d1f6

12 files changed

Lines changed: 146 additions & 455 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ _build/**
1212
*.annot
1313
*.run
1414
*.opt
15+
*.native
16+
*.byte
17+
*.install
18+
pkg/META
1519

1620
node_modules

.merlin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
PKG topkg reason
12
B ./_build/src
23
S ./src

.travis.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
language: node_js
2-
os:
3-
- linux
4-
- osx
5-
node_js:
6-
- "6"
7-
- "6.1"
8-
- "5.11"
9-
1+
language: objective-c
2+
osx_image: xcode7.3
3+
before_install:
4+
- brew update
5+
- brew install opam
6+
- opam init
7+
- opam switch "$OCAML_VERSION"
8+
- eval `opam config env`
9+
- opam update
10+
before_script:
11+
- opam pin add -y ReasonProject .
12+
script:
13+
- ./test-with-version.sh "$OCAML_VERSION"
14+
- git diff --exit-code
15+
env:
16+
- OCAML_VERSION=4.02.3
17+
- OCAML_VERSION=4.03.0
18+
- OCAML_VERSION=4.04.0
19+
notifications:
20+
email:
21+
- yunxing@fb.com
22+
- reason@cloudwalk.me

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
build:
2+
cp pkg/META.in pkg/META
3+
ocamlbuild -package topkg pkg/build.native
4+
./build.native build
5+
6+
release:
7+
git add package.json opam
8+
git commit -m "Version $(version)"
9+
git tag -a $(version) -m "Version $(version)."
10+
# Push first the objects, then the tag.
11+
git push "git@github.com:reasonml/ReasonProject.git"
12+
git push "git@github.com:reasonml/ReasonProject.git" tag $(version)
13+
14+
clean:
15+
ocamlbuild -clean
16+
17+
.PHONY: build release

README-Yarn.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)