forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (60 loc) · 1.43 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
language: python
python: 3.8.2
env:
global:
- TRAVIS_NODE_VERSION=10.19.0
dist: bionic
addons:
hosts:
- warehouse.local
postgresql: 10
apt:
packages:
- postgresql-10
- postgresql-client-10
- nasm
- libgnutls28-dev
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- ~/.nvm/versions/
- ~/.npm
install:
- 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
- pip install -r requirements/dev.txt
- npm i -g npm
- npm install -g gulp-cli
- npm ci
script:
- node -v
- npm -v
- bin/tests --postgresql-host 127.0.0.1
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
- script: make translations BINDIR="$(dirname $(which python))"
env:
- SUITE=Translations
- script: bin/static_tests
env:
- SUITE="Static Tests"
- script: bin/static_pipeline
env:
- SUITE="Static Pipeline"