This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
83 lines (83 loc) · 2.5 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: nix
sudo: required
os:
- linux
env:
global:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
matrix:
- TEST_FILE=aiohttp
- TEST_FILE=dependency_graph
- TEST_FILE=appdirs
- TEST_FILE=awscli_and_requests
- TEST_FILE=connexion
- TEST_FILE=empy
- TEST_FILE=fava
- TEST_FILE=flake8
- TEST_FILE=flake8_mercurial
- TEST_FILE=flit
- TEST_FILE=ldap
- TEST_FILE=lektor
- TEST_FILE=local_path
- TEST_FILE=pillow
- TEST_FILE=pynacl
- TEST_FILE=relative_paths
- TEST_FILE=rss2email
- TEST_FILE=scipy
- TEST_FILE=serpy_0_1_1
- TEST_FILE=setuptools
- TEST_FILE=tornado
install:
- sudo mount -o remount,exec,size=4G,mode=755 /run/user || true
- nix-env -iA nixpkgs.nix-prefetch-git nixpkgs.nix-prefetch-hg
before_script:
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
script:
- nix-shell --command 'run_integration_tests.py --file integrationtests/test_${TEST_FILE}.py'
stages:
- unittests
jobs:
include:
- stage: unittests
name: nixos-19.09
os: linux
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.09.tar.gz
before_script:
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
script:
- set -e
- nix-build
- result/bin/pypi2nix --version
- nix-shell --command 'flake8 && pytest unittests/'
- name: nixos-unstable
os: linux
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
before_script:
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
script:
- set -e
- nix build
- result/bin/pypi2nix --version
- nix-shell --command 'pytest unittests/'
- name: nixos-20.03
os: linux
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-20.03.tar.gz
before_script:
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
script:
- set -e
- nix build
- result/bin/pypi2nix --version
- nix-shell --command 'pytest unittests/'
- stage: package tests
name: package installation
os: linux
env:
- NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
before_script:
- sudo mkdir -p /etc/nix && echo 'sandbox = true' | sudo tee /etc/nix/nix.conf
script:
- nix-shell --command 'install_test.py'