forked from qxf2/qxf2-page-object-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
26 lines (24 loc) · 1.01 KB
/
circle.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
# Simple circle.yml to get started.
# Add more as we grow
general:
artifacts:
- "./screenshots" #Save the screenshots for all the tests
- "./log" #Save the logs for all the tests
test:
override:
# Clone qxf2/cars-api repo
- git clone https://github.com/qxf2/cars-api.git
# Install flask as it is needed to run our cars-api web server
- pip install -V Flask==0.12.2
# Run cars-app server in background as it is mandatory to run our API test
- python cars-api/cars_app.py:
background: true
# Wait for sometime to start the server
- sleep 5
# Run the API and Selenium tests only (Ignoring to run mobile test as we are not yet set to run mobile test on server)
- py.test -s -v --ignore=./tests/test_mobile_bitcoin_price.py --junit-xml=$CIRCLE_TEST_REPORTS/result.xml --tb=native
post:
- >
if [ -n "${NIGHTLY_BUILD}" ]; then
py.test -s -v --ignore=./tests/test_mobile_bitcoin_price.py --junit-xml=$CIRCLE_TEST_REPORTS/result_nightly.xml --tb=native
fi