-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
34 lines (33 loc) · 1.57 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
python:
- "3.9.12"
dist: bionic
services:
- docker
before_install:
- docker network create hive
- docker run -d --name hive-mongo --network hive -v ${PWD}/.mongodb-data:/data/db -p 27020:27017 mongo
- mkdir -p ${PWD}/.ipfs-data/ipfs-docker-staging
- mkdir -p ${PWD}/.ipfs-data/ipfs-docker-data
- docker run -d --name ipfs-node -v ${PWD}/.ipfs-data/ipfs-docker-staging:/export -v ${PWD}/.ipfs-data/ipfs-docker-data:/data/ipfs -p 8080:8080 -p 4001:4001 -p 127.0.0.1:5001:5001 ipfs/go-ipfs:latest
- cp config/.env.travis .env
- pip install -r requirements.txt
install:
- docker ps
script:
- pytest --disable-pytest-warnings -xs tests_v1/hive_auth_test.py
- pytest --disable-pytest-warnings -xs tests_v1/hive_subscription_test.py
- pytest --disable-pytest-warnings -xs tests_v1/hive_mongo_test.py
- pytest --disable-pytest-warnings -xs tests_v1/hive_file_test.py
- pytest --disable-pytest-warnings -xs tests_v1/hive_scripting_test.py
- TRAVIS=True python manage.py runserver &
- ./wait_node.sh
- pytest --disable-pytest-warnings -xs tests/about_test.py
- pytest --disable-pytest-warnings -xs tests/auth_test.py
- pytest --disable-pytest-warnings -xs tests/subscription_test.py
- pytest --disable-pytest-warnings -xs tests/database_test.py
- pytest --disable-pytest-warnings -xs tests/files_test.py
- pytest --disable-pytest-warnings -xs tests/scripting_test.py
- pytest --disable-pytest-warnings -xs tests/payment_test.py
- pytest --disable-pytest-warnings -xs tests/backup_test.py
- pytest --disable-pytest-warnings -xs tests/provider_test.py