forked from getgauge-examples/python-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 1.01 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
language: python
sudo: required
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script:
- python build.py --test
- sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-keys 023EDB0B
- echo "deb https://dl.bintray.com/gauge/gauge-deb nightly main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get -y update > /dev/null | echo "Updated"
- sudo apt-get install -y gauge
- gauge -v
- python build.py --dist
- export GAUGE_PYTHON_VERSION=$(cd bin; ls gauge-python-*.zip | sed "s/^gauge-python-\([^;]*\).zip/\1/")
- gauge uninstall python
- gauge install python -f "bin/gauge-python-$GAUGE_PYTHON_VERSION.zip"
- pip install "dist/getgauge-$GAUGE_PYTHON_VERSION.tar.gz"
- gauge install html-report
- gauge install xml-report
- gauge install java
- git clone https://github.com/getgauge-examples/python-selenium --depth 1 --recursive
- cd python-selenium
- gauge run specs
- cd ../