Browse Source

first release

master 0.0.1
zapashcanon 4 years ago
parent
commit
c7a3d92eff
Signed by: zapashcanon GPG Key ID: 8981C3C62D1D28F1
  1. 34
      .build.yml
  2. 4
      .gitignore
  3. 2
      CHANGES.md
  4. 36
      dune-project
  5. 31
      exit.opam
  6. 4
      src/dune

34
.build.yml

@ -2,6 +2,7 @@ image: debian/unstable
packages:
- opam
- ocaml
- curl
sources:
- https://git.zapashcanon.fr/zapashcanon/exit
environment:
@ -13,6 +14,9 @@ environment:
archive_dst: /var/www/fs.zapashcanon.fr/archive
secrets:
- ec1f49cd-38dc-41d9-89f4-c3b6ecd7bcad # ssh deploy key
- b5b0e36c-fe52-43c4-9103-0aa918ad175c # github token
- c9e55d80-7b6a-4ad4-81bd-921d2c3247b8 # dune release profile
- ff8575b8-7192-4e0c-9905-6d04142a4ec1 # git config
tasks:
- setup: |
opam init -y
@ -48,6 +52,32 @@ tasks:
cd $name
eval "$(opam env)"
dune clean
git archive -o ${name}-dev.tar.xz HEAD
archive_name=${name}-dev.tar.xz
git archive -o $archive_name HEAD
ssh $sshopts $deploy "mkdir -p $archive_dst/$name/"
scp $sshopts ${name}-dev.tar.xz $deploy:$archive_dst/$name/
scp $sshopts $archive_name $deploy:$archive_dst/$name/
rm $archive_name
- release: |
cd $name
eval "$(opam env)"
git describe --exact-match || exit 0
opam install -y dune-release
tag=$(git describe --exact-match)
dune-release distrib || true
archive_name=${name}-${tag}.tbz
ls _build/${archive_name}
scp $sshopts _build/${archive_name} $deploy:$archive_dst/$name/
url="https://fs.zapashcanon.fr/archive/${name}/${archive_name}"
echo $url > _build/${name}-${tag}.url
dune-release opam pkg
opam_file=_build/${name}.${tag}/opam
line_num="$(grep -n -e 'src:' $opam_file | cut -d: -f1)"
sed -i -e "${line_num}s|^.*| src: \"${url}\"|" $opam_file
line_num=$(($line_num + 1))
sed -i -e "${line_num}d" $opam_file
sed -i -e "${line_num}d" $opam_file
cd ..
echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
git clone https://github.com/Cameleo/opam-repository.git
cd $name
dune-release opam submit --no-auto-open -y

4
.gitignore

@ -1,4 +1,4 @@
_build/
*.install
_coverage/
*.merlin
*.opam
*.install

2
CHANGES.md

@ -1,3 +1,3 @@
## 0.1.0 - 2019-09-14
## 0.1.0 - 2019-11-23
First release

36
dune-project

@ -1,19 +1,33 @@
(lang dune 1.11)
(lang dune 2.0)
(name exit)
(license ISC)
(authors "Léo Andrès <l@ndrs.fr>")
(maintainers "Léo Andrès <l@ndrs.fr>")
(source (uri git://git.zapashcanon.fr/zapashcanon/exit.git))
(authors "Léo Andrès <contact@ndrs.fr>")
(maintainers "Léo Andrès <contact@ndrs.fr>")
(source
(uri git://git.zapashcanon.fr/zapashcanon/exit.git))
(bug_reports https://git.zapashcanon.fr/zapashcanon/exit/issues)
(homepage https://git.zapashcanon.fr/zapashcanon/exit)
(documentation https://doc.zapashcanon.fr/exit/)
(generate_opam_files true)
(explicit_js_mode)
(package
(name exit)
(synopsis "An OCaml library to get exit status as declared in `stdlib.h`")
(description "Exit is an OCaml library to get exit status as declared in `stdlib.h`.
It gives access to the values of `EXIT_SUCCESS` and `EXIT_FAILURE` macros and provides some functions built around them.")
(depends
(dune (> 1.11.0))))
(name exit)
(synopsis "Get exit status as declared in `stdlib.h`")
(description
"exit is an OCaml library to get exit status as declared in `stdlib.h`. It gives access to the values of `EXIT_SUCCESS` and `EXIT_FAILURE` macros and provides some functions built around them.")
(depends
(ocaml
(>= 4.05))
(dune
(>= 2.0))
(bisect_ppx
(>= 1.4))))

31
exit.opam

@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Get exit status as declared in `stdlib.h`"
description:
"exit is an OCaml library to get exit status as declared in `stdlib.h`. It gives access to the values of `EXIT_SUCCESS` and `EXIT_FAILURE` macros and provides some functions built around them."
maintainer: ["Léo Andrès <contact@ndrs.fr>"]
authors: ["Léo Andrès <contact@ndrs.fr>"]
license: "ISC"
homepage: "https://git.zapashcanon.fr/zapashcanon/exit"
doc: "https://doc.zapashcanon.fr/exit/"
bug-reports: "https://git.zapashcanon.fr/zapashcanon/exit/issues"
depends: [
"ocaml" {>= "4.05"}
"dune" {>= "2.0"}
"bisect_ppx" {>= "1.4"}
]
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git://git.zapashcanon.fr/zapashcanon/exit.git"

4
src/dune

@ -3,4 +3,6 @@
(wrapped false)
(preprocess
(pps bisect_ppx -conditional))
(c_names exit_stubs))
(foreign_stubs
(language c)
(names exit_stubs)))

Loading…
Cancel
Save