Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[DEVOPS-779] simplify CI setup with buildkite hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
disassembler committed Jul 11, 2018
1 parent 2261860 commit 80290e5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=======
set -x

NIX_PATH="nixpkgs=$(nix-build fetch-nixpkgs.nix -o nixpkgs)"
export NIX_PATH
6 changes: 3 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
steps:
- label: 'stack2nix'
command: 'scripts/ci/nix-shell.sh -p cabal2nix stack cabal-install ghc moreutils expect -Q -j 4 --run scripts/check-stack2nix.sh'
command: 'nix-shell -Q -j 4 --run scripts/check-stack2nix.sh'
agents:
system: x86_64-linux

- label: 'release.nix'
command: 'scripts/ci/nix-shell.sh --run scripts/ci/check-hydra.sh'
command: 'nix-shell --run scripts/ci/check-hydra.sh'
agents:
system: x86_64-linux

- label: 'explorer frontend: checking generated dependencies'
command: 'scripts/ci/nix-shell.sh --run "cd explorer/frontend && ./nix/generate-frontend-deps.hs --test"'
command: "cd explorer/frontend && ./nix/generate-frontend-deps.hs --test"
agents:
system: x86_64-linux
2 changes: 1 addition & 1 deletion pkgs/generate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash
#!nix-shell -i bash -p bash cabal2nix stack cabal-install ghc

# regenerate the `pkgs/default.nix` file based on the current contents of cardano-sl.cabal and stack.yaml

Expand Down
3 changes: 2 additions & 1 deletion scripts/check-stack2nix.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p git bash

# check and warn if `pkgs/default.nix` is out of date

Expand Down
27 changes: 0 additions & 27 deletions scripts/ci/nix-shell.sh

This file was deleted.

0 comments on commit 80290e5

Please sign in to comment.