Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 1a600a5

Browse files
committed
handler: add CircleCI
1 parent 0e529d8 commit 1a600a5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
working_directory: ~/project/infra
6+
machine:
7+
enabled: true
8+
steps:
9+
- checkout:
10+
path: ~/project
11+
12+
- run:
13+
name: Install Nix
14+
command: |
15+
sudo mkdir -p /nix
16+
sudo chown circleci /nix
17+
bash <(curl https://nixos.org/nix/install)
18+
echo '. /home/circleci/.nix-profile/etc/profile.d/nix.sh' >> $BASH_ENV
19+
sudo mkdir -p /etc/nix
20+
21+
# Enable sandbox
22+
echo "build-use-sandbox = true" | sudo tee -a /etc/nix/nix.conf
23+
echo "substituters = https://cache.nixos.org https://static-haskell-nix.cachix.org" \
24+
| sudo tee -a /etc/nix/nix.conf
25+
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= static-haskell-nix.cachix.org-1:Q17HawmAwaM1/BfIxaEDKAxwTOyRVhPG5Ji9K3+FvUU=" \
26+
| sudo tee -a /etc/nix/nix.conf
27+
28+
29+
30+
#path: ~/deckdeckgo
31+
32+
- run:
33+
name: Nix build
34+
command: |
35+
ls
36+
pwd
37+
./script/test
38+
39+
workflows:
40+
version: 2
41+
build:
42+
jobs:
43+
- build

0 commit comments

Comments
 (0)