Skip to content

Commit

Permalink
Upgrade dev env to latest stable nixpkgs 21.11 (#188)
Browse files Browse the repository at this point in the history
And with it, update a bunch of python packages as well.

Finally, add a test for shell.nix.
  • Loading branch information
zupo authored Nov 29, 2022
1 parent 5ddcc4d commit 0603398
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 141 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ workflows:
filters:
tags:
only: /.*/
- test_nix_shell:
filters:
tags:
only: /.*/
- release:
requires:
- test_37
Expand Down Expand Up @@ -184,6 +188,38 @@ jobs:

- run_tests

test_nix_shell:
resource_class: large
working_directory: ~/pyramid_openapi3
docker:
- image: niteo/nixpkgs-nixos-22.11:ce5fe99df1f15a09a91a86be9738d68fadfbad82

environment:
CACHIX_NAME: pyramid-openapi3

steps:

- checkout:
path: ~/pyramid_openapi3

- run:
name: Configure Nix and Cachix
no_output_timeout: 30m
command: |
mkdir -p /etc/nix
echo "sandbox = false" >> /etc/nix/nix.conf
cachix use "$CACHIX_NAME"
cachix watch-exec "$CACHIX_NAME" nix-shell -- --run "echo 'nix-shell successfully entered'"
- run:
name: Upload Linux dependencies
command: |
cachix watch-exec "$CACHIX_NAME" nix-build -- shell.nix -A inputDerivation
- run:
name: Run tests
command: nix-shell --run "make tests"

release:
<<: *defaults

Expand Down
Loading

0 comments on commit 0603398

Please sign in to comment.