mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-09-11 16:36:31 +03:00
Use Buildkite
Replace CircleCI with Buildkite.
This commit is contained in:
parent
ac719f3e99
commit
5f5a70655a
8
.buildkite/pipeline.yml
Normal file
8
.buildkite/pipeline.yml
Normal file
@ -0,0 +1,8 @@
|
||||
steps:
|
||||
- label: Build and test
|
||||
command: |
|
||||
nix-build --keep-going --no-out-link
|
||||
echo $NIX_PATH
|
||||
./format.sh
|
||||
git diff --exit-code --color=always
|
||||
timeout: 100
|
@ -1,49 +0,0 @@
|
||||
version: 2
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: nixos/nix:2.1.3
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Add ca-certificates
|
||||
command: |
|
||||
apk --no-progress update
|
||||
apk --no-progress add ca-certificates
|
||||
- run:
|
||||
name: Setup Cachix
|
||||
command: |
|
||||
nix-env -iA cachix -f https://cachix.org/api/v1/install
|
||||
USER=dummy cachix use tweag
|
||||
- run:
|
||||
name: Build environment
|
||||
command: |
|
||||
nix-shell --pure --run :
|
||||
- run:
|
||||
name: Push Cachix
|
||||
command: |
|
||||
if [ -n "$CACHIX_SIGNING_KEY" ];
|
||||
then nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push tweag;
|
||||
fi
|
||||
- run:
|
||||
name: Build the package (includes running the tests)
|
||||
command: nix-build --keep-going
|
||||
- run:
|
||||
name: Check formatting
|
||||
command: |
|
||||
./format.sh
|
||||
nix-shell -p "(import ./nix/nixpkgs/default.nix).git" --command "git diff --exit-code --color=always"
|
||||
- run:
|
||||
name: Generate Haddocks
|
||||
command: nix-build --attr ormolu.doc
|
||||
- store_artifacts:
|
||||
path: result-doc/share/doc
|
||||
destination: haddock
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- build:
|
||||
context: org-global
|
@ -4,7 +4,7 @@
|
||||
[![Hackage](https://img.shields.io/hackage/v/ormolu.svg?style=flat)](https://hackage.haskell.org/package/ormolu)
|
||||
[![Stackage Nightly](http://stackage.org/package/ormolu/badge/nightly)](http://stackage.org/nightly/package/ormolu)
|
||||
[![Stackage LTS](http://stackage.org/package/ormolu/badge/lts)](http://stackage.org/lts/package/ormolu)
|
||||
[![CircleCI](https://circleci.com/gh/tweag/ormolu/tree/master.svg?style=svg&circle-token=cfd37a39265561eb44e608f97cf953cb2a394c03)](https://circleci.com/gh/tweag/ormolu/tree/master)
|
||||
[![Build status](https://badge.buildkite.com/8e3b0951f3652b77e1c422b361904136a539b0522029156354.svg?branch=master)](https://buildkite.com/tweag-1/ormolu)
|
||||
|
||||
Ormolu is a formatter for Haskell source code. The project was created with
|
||||
the following goals in mind:
|
||||
|
@ -56,6 +56,12 @@ in {
|
||||
haskellPackages.ghcid
|
||||
];
|
||||
};
|
||||
withOrmolu = haskellPackages.shellFor {
|
||||
packages = ps: [];
|
||||
buildInputs = [
|
||||
haskellPackages.ormolu
|
||||
];
|
||||
};
|
||||
inherit ormoluOverlay ormoluCompiler;
|
||||
hackage = ormolizedPackages false;
|
||||
hackageTests = with pkgs.lib; pkgs.recurseIntoAttrs (
|
||||
|
Loading…
Reference in New Issue
Block a user