Skip to content

Commit cd2ead8

Browse files
committed
Replace Travis CI with Buildkite
1 parent 1f699cb commit cd2ead8

File tree

3 files changed

+43
-45
lines changed

3 files changed

+43
-45
lines changed

.buildkite/build.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#! /usr/bin/env nix-shell
2+
#! nix-shell --pure -i bash -p nix cabal-install ghc nix-prefetch-scripts
3+
4+
export NIX_PATH="nixpkgs=channel:nixos-19.03"
5+
6+
set -euo pipefail
7+
8+
# This file can interfere with the build.
9+
# https://github.com/input-output-hk/haskell.nix/issues/57
10+
rm -f .nix-tools.cache
11+
12+
echo "+++ Cabal configure"
13+
cabal new-update
14+
cabal new-configure
15+
16+
echo
17+
echo "+++ Run stable version of plan-to-nix"
18+
nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz nix-tools -o nt
19+
./nt/bin/plan-to-nix --output nix1 --plan-json dist-newstyle/cache/plan.json
20+
21+
echo
22+
echo "+++ Build project"
23+
nix build -f nix1 nix-tools.components.exes --no-link
24+
25+
echo
26+
echo "+++ Run tests"
27+
echo "There are no tests -- https://github.com/input-output-hk/haskell.nix/issues/51"
28+
29+
echo
30+
echo "+++ Run plan-to-nix again"
31+
32+
nix build -f nix1 nix-tools.components.exes.plan-to-nix
33+
./result/bin/plan-to-nix --output nix2 --plan-json dist-newstyle/cache/plan.json
34+
35+
echo
36+
echo "+++ Build project"
37+
38+
nix build -f nix2 nix-tools.components.exes --no-link

.buildkite/pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
steps:
2+
- label: 'Build'
3+
command: ./.buildkite/build.sh
4+
agents:
5+
system: x86_64-linux

.travis.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)