-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (57 loc) · 2.5 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# CI Environment
dist: jammy
# Job Configurations
jobs:
include:
- language: node_js
node_js: 16
python: 3.10
services:
- postgresql
env:
- MODE="DEVELOPMENT"
- DJANGO_SECRET_KEY="django-insecure-u(^8h(h2@+++ayblbqsn!zw#w4yl$^6o2(_mi3j*iijd#l1m3h"
- DB_HOST="127.0.0.1"
- DB_PASSWORD="qwer1234"
addons:
apt:
sources:
- sourceline: "ppa:chris-lea/redis-server"
packages:
- redis-tools
- redis-server
sonarcloud:
organization: swsnu
token:
secure: "Jc9oxrzqviRxdezF8u1C7URgVW+PJtUTberlzCvlCuuqpf9/d2YfnZf2gdSTzP8Fd6WnFkwBwtyTAjvMxyC9lHwlz6LozOxKbypinxaphImZ+M+oHprZG6D+4uzyUWlfuEXi2EFoZS5Xo1KnBbAWD2bkFRzDf9/dU+U3zf1Lw9eklgZ3y2pFggYYxzho5KhXQ4La4TDcqNyv8MIDLoxjFDezpLqmquJ9ZKrGDGIVujodTa4xvNwRc2Fw+YrAWvG7ZDg7mdaYmTEe3AjG3pUdBeQVzEpqp15SrCQ9YHzZuav6F2cviIJ8xiDAHyCd1n1yINaSQc4RAMJh7mLXKl9hP0Uaxu+PctwpAJi/u9QV1yYptz8gmV4LC2//yJFGMmpSWD0mec1EKi005jzT5rAIzHB5nQkRu1gAmyih9j/89yMpvygRN8JQqahPy7MKs+26OnwiOzTJT3v9ZdcrGL6YU4v58691RReCV//PlXGnw7hsr+z8iJoDLxIt3GKN2uqmWQJAFTPB6MMBmFTgXZjAiMsvJh6KrKIZKRjOpQLYONFqOIeqyIxxvqgF+E1z+aRZaFGqkML0vStmxbJ1YUMhotMpwY49rILJ5hEZ/9CcTQzGXS2B3sfxYSwVOa/I7gy7RhHhGGITZEADsl/LhTZq2R5CfDeRFb7DqTWEAa5j4pE="
before_install:
- sudo apt-get update
- sudo apt-get install postgresql-14-postgis-3
install:
- cd cago-web
- yarn install -y
- yarn add coveralls
- cd ../cago-server
- pip install -r requirements.txt
- pip install coveralls
- cd ..
- gem install coveralls-lcov
before_script:
- sudo systemctl start redis
- psql --version
- psql -U postgres -c 'CREATE DATABASE cago;'
- psql -U postgres -c "ALTER USER postgres WITH PASSWORD '"$DB_PASSWORD"';"
- psql -U postgres -c "ALTER ROLE postgres SET client_encoding TO 'utf8';"
- psql -U postgres -c "ALTER ROLE postgres SET TIMEZONE TO 'Asia/Seoul';"
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE cago TO postgres;"
script:
- cd cago-web
- ./node_modules/.bin/eslint src
- yarn test --coverage --watchAll=false --passWithNoTests
- coveralls-lcov -v -n coverage/lcov.info > coverage.json
- cd ../cago-server
- black **/*.py
- coverage run --source='.' manage.py test
- coverage xml
- coveralls --merge=../cago-web/coverage.json
- cd .. && sonar-scanner