forked from pypi/warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (61 loc) · 1.56 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
language: python
python: 3.6.1
env:
global:
- TRAVIS_NODE_VERSION=6.6.0
- PGPORT=5433
dist: trusty
sudo: true
addons:
hosts:
- warehouse.local
postgresql: 10
apt:
packages:
- postgresql-10
- postgresql-client-10
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
- sudo cp /etc/postgresql/{9.6,10}/main/pg_hba.conf
- sudo service postgresql restart
script:
- node -v
- npm -v
- ./node_modules/.bin/gulp dist
- 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
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true