-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
40 lines (40 loc) · 1.32 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
language: python
python:
- 3.6
sudo: required
addons:
chrome: stable
services:
- xvfb
- postgresql
cache:
pip: true
yarn: true
directories:
install:
- pip install -r requirements.txt -r requirements-dev.txt -r requirements-postgres.txt
- pushd frontend; yarn install; popd
before_script:
- export CHROME_VERSION=`google-chrome-stable --version | cut -d' ' -f3 | sed 's/\.[[:digit:]]*$//'`
- wget --no-verbose -O /tmp/chromeversion.txt https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}
- export CHROME_DRIVER_VERSION=`cat /tmp/chromeversion.txt`
- wget --no-verbose -O chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo mv chromedriver /usr/local/bin
- "export DISPLAY=:99.0"
script:
- python -m coverage run --source rfhub2 -m unittest -b tests
- black --check -t py36 rfhub2 tests
- ./build_ui.sh
- python setup.py sdist bdist_wheel
- rm test.db #ensure we start clean slate
- ./scripts/install_package_in_venv.sh
- robot -A tests/acceptance/conf/default.args tests/acceptance
- robot -A tests/acceptance/conf/postgres.args tests/acceptance
after_success:
- codecov
- python publish_pypi.py
deploy:
provider: heroku
app: rfhub2-demo
api_key: $HEROKU_AUTH_TOKEN