-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (27 loc) · 814 Bytes
/
.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
language: python
python:
- 3.5
services:
- docker
before_install:
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
env:
- WHEELHOUSE=$TRAVIS_BUILD_DIR/wheelhouse PIP_WHEEL_DIR=$TRAVIS_BUILD_DIR/wheelhouse PIP_FIND_LINKS=$TRAVIS_BUILD_DIR/wheelhouse
cache:
directories:
- $HOME/.yarn-cache
- $TRAVIS_BUILD_DIR/wheelhouse
install:
- pip install --upgrade pip
- pip install wheel
- pip wheel -r requirements.txt
- pip install --no-index -f $TRAVIS_BUILD_DIR/wheelhouse -r requirements.txt
- yarn install
script:
- SECRET_KEY=123abcdef py.test
- yarn run test
- ./build.sh