forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.27 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
language: python
python: 3.7.3
env:
global:
- TRAVIS_NODE_VERSION=8.9.4
dist: xenial
addons:
hosts:
- warehouse.local
postgresql: 10
apt:
packages:
- postgresql-10
- postgresql-client-10
- nasm
- libgnutls28-dev
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel
- pip install -r requirements/main.txt -r requirements/deploy.txt -r requirements/docs.txt -r requirements/lint.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- bin/tests --postgresql-host 127.0.0.1
- bin/static_tests
matrix:
include:
- env:
- SUITE=Tests
- script: make lint BINDIR="$(dirname $(which python))"
env:
- SUITE=Lint
- script: make docs BINDIR="$(dirname $(which python))"
env:
- SUITE=Documentation
- script: make travis-deps BINDIR="$(dirname $(which python))"
env:
- SUITE=Dependencies
- script: make licenses BINDIR="$(dirname $(which python))"
env:
- SUITE=Licenses