forked from Weasyl/weasyl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 1.06 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
language: python
# Run on Travis CI's docker infrastructure
sudo: false
matrix:
include:
- python: 2.7
- python: 3.5
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
cache:
directories:
- ~/.cache/pip
addons:
postgresql: "9.6"
services:
- memcached
- postgresql
before_install:
- mkdir -p ~/.cache/pip/wheels ~/.bin
- wget https://github.com/Weasyl/sassc/releases/download/3.5.0/sassc-ubuntu14.04.xz
- echo '80b7c3321c74f0a7ec965b27cdeb9332b63865ab6c5105b095b72df1a250808f sassc-ubuntu14.04.xz' | sha256sum -c
- unxz < sassc-ubuntu14.04.xz > ~/.bin/sassc
- chmod +x ~/.bin/sassc
- pip install -U pip setuptools pbr
- pip --version
- export VE=$VIRTUAL_ENV # Use the virtual environment travis provides.
- export PATH=$HOME/.bin:$PATH
- cp etc/pip.conf $VE
- nvm install 8
install:
- createdb -E UTF8 -O travis weasyl_test
- ./.travis-install.sh
script:
- ./.travis-test.sh
after_success:
- codecov