diff options
-rw-r--r-- | bash/fake-symlinks.sh | 8 | ||||
-rw-r--r-- | templates/sr-ht-build.yaml | 23 |
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 |