-
Notifications
You must be signed in to change notification settings - Fork 77
/
.travis.yml
25 lines (25 loc) · 972 Bytes
/
.travis.yml
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
---
language: nix
env:
global:
- STORE=$HOME/nix-store
matrix:
- PYMKS_USE_FFTW=0
cache:
directories:
- $STORE
before_install:
- sudo mkdir -p /etc/nix
- echo "binary-caches = https://cache.nixos.org/ file://$STORE" | sudo tee -a /etc/nix/nix.conf > /dev/null
- echo 'require-sigs = false' | sudo tee -a /etc/nix/nix.conf > /dev/null
before_cache:
- mkdir -p $STORE
- nix copy --to file://$STORE -f shell.nix nativeBuildInputs
install:
- nix-shell --pure --command "echo 'run nix-shell'"
script:
- nix-shell --pure --command "py.test pymks/fmks --cov-fail-under=100"
- nix-shell --pure --command "py.test --cov-fail-under=100"
- nix-shell --pure --command "pylint --rcfile=.pylintrc setup.py pymks/__init__.py pymks/fmks pymks/fmks/tests"
- nix-shell --pure --command "flake8 setup.py pymks/__init__.py pymks/fmks pymks/fmks/tests"
- nix-shell --pure --command "black --check setup.py pymks/__init__.py pymks/fmks pymks/fmks/tests"