Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
fb96cb32
Commit
fb96cb32
authored
5 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
CircleCI caching for the docs job
parent
5e976865
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
Fix openssl build issues
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.circleci/config.yml
+19
-28
19 additions, 28 deletions
.circleci/config.yml
with
19 additions
and
28 deletions
.circleci/config.yml
+
19
−
28
View file @
fb96cb32
...
...
@@ -34,12 +34,6 @@ jobs:
docker
:
-
image
:
"
nixorg/nix:circleci"
steps
:
-
run
:
name
:
"
Install
Git"
command
:
|
# Required for the checkout step
nix-env -i git openssh
-
"
checkout"
-
restore_cache
:
...
...
@@ -63,46 +57,43 @@ jobs:
-
privatestorageio-nix-store-v1-{{ checksum "nixpkgs.rev" }}
-
privatestorageio-nix-store-v1-
-
save_cache
:
name
:
"
Cache
Nix
Store
Paths"
key
:
privatestorageio-nix-store-v1-{{ checksum "nixpkgs.rev" }}
paths
:
-
"
/nix"
-
run
:
name
:
"
Run
Tests"
command
:
|
export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/$(cat nixpkgs.rev).tar.gz
nix-build --max-jobs 1 nixos/system-tests.nix -A driver
-
save_cache
:
name
:
"
Cache
Nix
Store
Paths"
key
:
privatestorageio-nix-store-v1-{{ checksum "nixpkgs.rev" }}
paths
:
-
"
/nix"
build
:
docker
:
-
image
:
"
nixorg/nix:circleci"
steps
:
-
run
:
name
:
"
Install
CA
Certificates"
command
:
|
# Required for cache and artifact interactions. Though we use a
# nix image, it's actually an alpine base... The CircleCI cache
# management (which we stopped using) and artifact uploader don't
# know how to use the nix ca bundle we could install.
apk update
apk add ca-certificates
-
run
:
name
:
"
Install
Git"
command
:
|
# Required for the checkout step
nix-env -i git openssh
-
"
checkout"
-
restore_cache
:
# See comments for nix store caching in `build` job.
name
:
"
Restore
Nix
Store
Paths"
keys
:
-
privatestorageio-docs-nix-store-v1-{{ checksum "nixpkgs.rev" }}
-
privatestorageio-docs-nix-store-v1-
-
run
:
name
:
"
Nix
Build"
command
:
|
export NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/$(cat nixpkgs.rev).tar.gz
nix-build docs.nix
-
save_cache
:
name
:
"
Cache
Nix
Store
Paths"
key
:
privatestorageio-docs-nix-store-v1-{{ checksum "nixpkgs.rev" }}
paths
:
-
"
/nix"
-
store_artifacts
:
path
:
"
result/docs"
destination
:
"
docs"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment