forked from CodeGra-de/CodeGra.fs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
71 lines (60 loc) · 1.38 KB
/
.travis.yml
File metadata and controls
71 lines (60 loc) · 1.38 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: python
sudo: required
notifications:
email: false
services:
- postgresql
- redis-server
branches:
only:
- master
cache:
pip: true
apt: true
matrix:
include:
- python: "3.6-dev" # 3.6 development branch
addons:
apt:
packages:
- jq
- flex
before_install:
- sudo apt-get install -qq pkg-config fuse
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
install:
- pip install -U wheel
- pip install coveralls pytest-cov
- pip install codecov
- pip install .
- which cgfs
- pip install celery[redis]
- git clone https://github.com/CodeGra-de/CodeGra.de.git backend
- pip install -r backend/requirements.txt
before_script:
- pwd
- ls
- echo -e '[Back-end]\nsqlalchemy_database_uri = postgresql:///travis_ci_test\nDEBUG = true' > backend/config.ini
- echo -e '\n[Celery]\nbroker_url = redis://localhost:6379/0\n' >> backend/config.ini
- mkdir -p backend/uploads
- mkdir -p backend/mirror_uploads
- python --version
- export PYTHONPATH="$PYTHONPATH:$(pwd)"
- export DEBUG=true
- psql -c 'create database travis_ci_test;' -U postgres
- export PYTHON=python
- cd backend
- make db_upgrade
- make test_data
- make start_dev_server > ../server.log 2>&1 &
- cd ..
- sleep 6
script:
- make test
after_script:
cat server.log
after_success:
- coveralls
- codecov