-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.39 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
dist: xenial
env:
global:
- MOZ_HEADLESS=1
addons:
chrome: stable
firefox: latest
language: python
python:
- "3.7"
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
install:
- pip install -r requirements.txt
- wget -N https://chromedriver.storage.googleapis.com/86.0.4240.22/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- wget -N https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz -P ~/
- tar -xzf ~/geckodriver-v0.27.0-linux64.tar.gz -C ~/
- rm ~/geckodriver-v0.27.0-linux64.tar.gz
- sudo mv -f ~/geckodriver /usr/local/share
- sudo chmod +x /usr/local/share/geckodriver
- sudo ln -s /usr/local/share/geckodriver /usr/local/bin/geckodriver
before_script:
- sudo touch output_file
- sudo chmod 777 output_file
- cat .dw/config | grep -o 'ey.*' | dw configure
- mkdir ~/.streamlit && touch ~/.streamlit/config.toml
- streamlit config show > ~/.streamlit/config.toml
- sed -i -e 's/baseUrlPath = ""/baseUrlPath = "covid19dataexplorer.com\/dev"/g' ~/.streamlit/config.toml
script:
- bash runtests.sh
notifications:
email: false