-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (41 loc) · 1.17 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
sudo: required
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-contrib-9.6
services:
- postgresql
language: python
python:
- "2.7"
cache: pip
git:
submodules: false
before_install:
# Access the submodule via https instead of default SSH
- git config submodule.core.url https://github.com/NYPL-Simplified/server_core.git
- git config submodule.docker.url https://github.com/NYPL-Simplified/circulation-docker.git
- git submodule update --init --recursive
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- python -m textblob.download_corpora
before_script:
- psql -c 'create user simplified_test;' -U postgres
- psql -c 'create database simplified_circulation_test;' -U postgres
- psql -c 'grant all privileges on database simplified_circulation_test to simplified_test;' -U postgres
- cd docs && make html && cd ..
env:
global:
- SIMPLIFIED_TEST_DATABASE="postgres://simplified_test:test@localhost:5432/simplified_circulation_test"
script:
- ./verbose-test
deploy:
provider: pages
skip_cleanup: true
keep-history: true
github_token: $GITHUB_TOKEN
on:
branch: master
local_dir: docs/build/html/