aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-29 19:33:21 -0200
committerEuAndreh <eu@euandre.org>2018-12-29 19:33:21 -0200
commitaa5ef73235823c1e91195cec0905a45424af95b2 (patch)
treec7c724ef10d6ebce09fb6ce42ae5bb12fc3e55de
parentMake scripts/startx executable. (diff)
downloaddotfiles-aa5ef73235823c1e91195cec0905a45424af95b2.tar.gz
dotfiles-aa5ef73235823c1e91195cec0905a45424af95b2.tar.xz
Generate .build.yml files on fake-symlinks.
-rw-r--r--bash/fake-symlinks.sh8
-rw-r--r--templates/sr-ht-build.yaml23
2 files changed, 31 insertions, 0 deletions
diff --git a/bash/fake-symlinks.sh b/bash/fake-symlinks.sh
index b61e798..9361354 100644
--- a/bash/fake-symlinks.sh
+++ b/bash/fake-symlinks.sh
@@ -10,3 +10,11 @@ for repo in ${repos[@]}; do
cp "$DOTFILES/git/gitlab-ci.yml" "$DOTFILES/../$repo/.gitlab-ci.yml"
cp "$DOTFILES/git/default.nix" "$DOTFILES/../$repo/default.nix"
done
+
+
+SRHT_REPOS=("website" "mentat" "cement" "pouchdb-materialized-view")
+SRHT_REPOS_PATH="$HOME/dev/libre"
+
+for repo in ${SRHT_REPOS[@]}; do
+ cat $DOTFILES/templates/sr-ht-build.yaml | REPO="$repo" envsubst > "$SRHT_REPOS_PATH/$repo/.build.yml"
+done
diff --git a/templates/sr-ht-build.yaml b/templates/sr-ht-build.yaml
new file mode 100644
index 0000000..8c55df6
--- /dev/null
+++ b/templates/sr-ht-build.yaml
@@ -0,0 +1,23 @@
+image: debian/stretch
+packages:
+ - curl
+triggers:
+ - condition: failure
+ action: email
+ to: EuAndreh <eu@euandre.org>
+sources:
+ - https://git.sr.ht/~euandreh/$REPO
+secrets:
+ - 7159f943-811f-402d-bb6d-37cd764dc728
+tasks:
+ - setup: |
+ curl https://nixos.org/nix/install | sh
+ echo '. ~/.nix-profile/etc/profile.d/nix.sh' >> ~/.buildenv
+ - tests: |
+ cd $REPO/
+ nix-build -A test
+ - docs: |
+ cd $REPO/
+ nix-build -A publishScript
+ source env.sh
+ ./result/bin/publish.sh