Skip to content

Commit

Permalink
ci: build deps in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesloetzsch committed Jul 26, 2021
1 parent 2a8eeec commit c97bf25
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ jobs:
keys:
- nix-{{ checksum "flake.lock" }}-{{ checksum "flake.nix" }}
- nix-{{ checksum "flake.lock" }} ## the cache will be cleaned on updates
## We build the depedencies in a separate step.
## This is not required, but allows to see the time it took.
- run:
name: Pure reproducible build + unit tests
name: Build Node dependencies
command: nix build .#frontend.nodeDependencies -o result-node
- run:
name: Build Maven dependencies
command: nix build .#backend.mavenRepository -o result-maven
- run:
name: Reproducible build + unit tests
command: nix build -o result-fullstack --show-trace
- run:
name: Integration tests
Expand Down
2 changes: 1 addition & 1 deletion backend/nix/swlkup-backend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ lib.mergeAttrs
echo $! > .pid
fg
'')
{ jar = swlkup-backend-jar; }
{ inherit mavenRepository; jar = swlkup-backend-jar; }
5 changes: 1 addition & 4 deletions backend/src/swlkup/db/seed/example.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
:id "counselling"
:crux.spec :swlkup.model.offers/offers
:target :individual
:desc "Counselling for individuals"}
:desc "Counselling/Coaching for individuals"}
{:crux.db/id :crisis_intervention
:id "crisis_intervention"
:crux.spec :swlkup.model.offers/offers
Expand Down Expand Up @@ -69,9 +69,6 @@
:target :group
:desc "Workshops"}

#_{:crux.db/id :coaching
:crux.spec :swlkup.model.offers/offers
}
#_{:crux.db/id :translation
:crux.spec :swlkup.model.offers/offers
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/nix/swlkup-frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ lib.mergeAttrs
node ${minimalServer}/serve.js ${staticHTML}
''
)
{ inherit staticHTML; }
{ inherit staticHTML nodeDependencies; }

0 comments on commit c97bf25

Please sign in to comment.