Browse Source

fix build manifest

master
zapashcanon 2 years ago
parent
commit
31dfaf5fb9
Signed by: zapashcanon GPG Key ID: 8981C3C62D1D28F1
  1. 7
      .build.yml

7
.build.yml

@ -6,9 +6,6 @@ packages:
environment:
deploy: fs@zapashcanon.fr
sshopts: "-o StrictHostKeyChecking=no -q"
cov_dst: /var/www/coverage.zapashcanon.fr/$GIT_REPO_NAME/
doc_dst: /var/www/doc.zapashcanon.fr/$GIT_REPO_NAME/
arc_dst: /var/www/fs.zapashcanon.fr/archive/$GIT_REPO_NAME/
secrets:
- ec1f49cd-38dc-41d9-89f4-c3b6ecd7bcad # ssh deploy key
- b5b0e36c-fe52-43c4-9103-0aa918ad175c # github token
@ -35,6 +32,7 @@ tasks:
cd $GIT_REPO_NAME
eval "$(opam env)"
dune build @doc
doc_dst="/var/www/doc.zapashcanon.fr/$GIT_REPO_NAME/"
ssh $sshopts $deploy "mkdir -p $doc_dst"
scp $sshopts -r _build/default/_doc/_html/* $deploy:$doc_dst
- deploy-coverage: |
@ -43,6 +41,7 @@ tasks:
dune clean
BISECT_ENABLE=YES dune runtest --no-buffer --force > /dev/null
bisect-ppx-report -html _coverage/ "$(find . -name 'bisect*.out')"
cov_dst="/var/www/coverage.zapashcanon.fr/$GIT_REPO_NAME/"
ssh $sshopts $deploy "mkdir -p $cov_dst"
scp $sshopts -r _coverage/* $deploy:$cov_dst
- archive: |
@ -51,6 +50,7 @@ tasks:
dune clean
archive=${GIT_REPO_NAME}-dev.tar.xz
git archive -o $archive HEAD
arc_dst="/var/www/fs.zapashcanon.fr/archive/$GIT_REPO_NAME/"
ssh $sshopts $deploy "mkdir -p $arc_dst"
scp $sshopts $archive $deploy:$arc_dst
rm $archive
@ -62,6 +62,7 @@ tasks:
dune-release distrib || true
archive=${GIT_REPO_NAME}-${GIT_TAG}.tbz
ls _build/${archive}
arc_dst="/var/www/fs.zapashcanon.fr/archive/$GIT_REPO_NAME/"
scp $sshopts _build/${archive} $deploy:$arc_dst
url="https://fs.zapashcanon.fr/archive/$GIT_REPO_NAME/$archive"
echo $url > _build/${GIT_REPO_NAME}-${GIT_TAG}.url

Loading…
Cancel
Save