-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 837 Bytes
/
.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
sudo: required
language: node_js
node_js:
- 8.12.0
python:
- "3.6"
addons:
chrome: stable
firefox: "49.0"
env:
- FLASK_APP=REST/server.py FLASK_ENV=development
before_install:
- sudo apt-get -y install python3-pip python-dev
- sudo pip3 install -U setuptools
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
install:
- sudo pip3 install -r requirements.txt
- cd frontend
- npm install
- npm install newman
before_script:
- cd ..
- set FLASK_APP=REST/server.py
- flask run &
- sleep 5s
- cd frontend
script:
- node_modules/.bin/newman run tests/postman/4YP.postman_collection.json -e tests/postman/4YP.postman_environment.json --global-var postman_username=$postman_username --global-var postman_password=$postman_password --delay-request 500
- npm test