-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
43 lines (36 loc) · 1.13 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
sudo: false
addons:
chrome:
stable
language: python
python:
- "3.6"
cache:
bundler: true
directories:
- node_modules
- /home/travis/.rvm/gems
before_install:
- nvm install node 11.10.0
- npm update
install:
- bundler install
- npm install
- pip install -r requirements_test.txt
# from https://travis-ci.community/t/how-to-setup-chromedriver-74-with-chrome-74-for-travis/2678/7
before_script:
- LATEST_CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"`
- curl "https://chromedriver.storage.googleapis.com/${LATEST_CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
- unzip chromedriver_linux64.zip -d ~/bin
- export PATH=$PATH:~/bin
script:
- echo path=$PATH
- bundle exec jekyll build -d _site
# 441 means "quota limit" - while a ticket has been opened with the offending site, this will remove this from erroring the tests
- bundle exec htmlproofer --http-status-ignore "441" ./_site --only-4xx --check-favicon --check-html
- npm test
- bundle exec jekyll serve --no-watch &
- sleep 5s
- python -m pytest . --driver-path ~/bin/chromedriver --use-headless
after_success:
- npm run coveralls