-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (41 loc) · 1.53 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
sudo: required
language: python
python:
- "3.6"
services:
- mongodb
addons:
apt:
packages:
- google-chrome-stable
- curl
- unzip
before_install:
- >
CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE) &&
mkdir -p /opt/chromedriver-"$CHROMEDRIVER_VERSION" &&
curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/"$CHROMEDRIVER_VERSION"/chromedriver_linux64.zip &&
unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-"$CHROMEDRIVER_VERSION" &&
rm /tmp/chromedriver_linux64.zip &&
chmod +x /opt/chromedriver-"$CHROMEDRIVER_VERSION"/chromedriver &&
sudo ln -fs /opt/chromedriver-"$CHROMEDRIVER_VERSION"/chromedriver /usr/local/bin/chromedriver
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.1 main"
| sudo tee /etc/apt/sources.list.d/mono-xamarin.list
- sudo apt-get update
- sudo apt-get install -y clang
- sudo apt-get install -y mono-complete
- sudo wget https://github.com/inkle/ink/releases/download/0.7.4/inklecate_windows_and_linux.zip
- cd $TRAVIS_BUILD_DIR
- unzip inklecate_windows_and_linux.zip
- chmod +x inklecate.exe
install:
- pip install -U setuptools
- pip install pycparser
- pip install codecov
- pip install pytest pytest-cov pytest-asyncio
- pip install -r requirements.txt
script:
- python -m pytest --cov=./
after_success:
- codecov