File: .travis.yml

package info (click to toggle)
rss2email 1%3A3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,260 kB
  • sloc: python: 2,565; xml: 156; sh: 6; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: "nix"

nix: "2.2.1"

os: "linux"

script: |
  set -e

  # build rss2email against every python version we support
  nix-build -A pythonVersions ./nix/release.nix

  # build the list of the transitive closure of dependencies
  nix-store --query --requisites --include-outputs \
    $(nix-instantiate -A pythonVersions ./nix/release.nix) \
    > nix-dependencies


# using the snippets from https://nixos.wiki/wiki/Nix_on_Travis

before_cache:
- mkdir -p $HOME/nix.store
# this copies the closure of all dependencies to the cache
- nix copy --to file://$HOME/nix.store $(cat ./nix-dependencies)

cache:
  directories:
  - $HOME/nix.store

before_install:
- sudo mkdir -p /etc/nix
- echo "substituters = https://cache.nixos.org/ file://$HOME/nix.store" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'sandbox = true' | sudo tee -a /etc/nix/nix.conf > /dev/null