-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.travis.py
70 lines (54 loc) · 1.76 KB
/
config.travis.py
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
import os
from datetime import datetime, timezone, timedelta
# uri should contain auth and default database
DB_URI_LOCAL = "mongodb://127.0.0.1:27017/travis"
DB_URI_ATLAS = os.getenv("TRAVIS_DB_URI", "")
DB_URI = DB_URI_LOCAL
DB_COLLECTIONS = {
"users": "users",
"magic links": "magicLinks",
"slack messages": "slackMessages",
"houses": "houses",
"teams": "teams"
}
EMAIL_ADDRESS = os.getenv("TRAVIS_TEST_EMAIL_ADDRESS")
EMAIL_PASSWORD = os.getenv("TRAVIS_TEST_EMAIL_PASSWORD")
SPARKPOST_KEY = os.getenv("TRAVIS_SPARKPOST_KEY", "")
SLACK_KEYS = {
'token': os.getenv("TRAVIS_SLACK_API_TOKEN_BOT"),
'channel': os.getenv("TRAVIS_SLACK_CHANNEL_ID")
}
class GOOGLE_CAL:
CAL_ID = os.getenv("TRAVIS_GOOGLE_CAL_ID", "")
CAL_API_KEY = os.getenv("TRAVIS_GOOGLE_CAL_API_KEY", "")
MAPS_API_KEY = os.getenv("TRAVIS_MAPS_API_KEY", "")
class TRAVEL:
HACKRU_LOCATION = "New Brunswick, NJ, USA"
MAX_REIMBURSE = 60
CAR_RATE = {
range(0, 50): 0,
range(50, 101): 20,
range(101, 201): 40,
range(201, 2 ** 100000): 59.99
}
# edt
TIMEZONE = timezone(timedelta(hours=-4))
# first is open second is close
REGISTRATION_DATES = [
# open for registration
[datetime(2018, 9, 19, tzinfo=TIMEZONE),
datetime(2018, 10, 6, 10, tzinfo=TIMEZONE)],
# reopen during the event of
[datetime(2018, 10, 7, 12, tzinfo=TIMEZONE),
datetime(2020, 10, 9, 12, tzinfo=TIMEZONE)]
]
AWS = {
"aws_access_key_id": os.environ.get("TRAVIS_AWS_ACCESS_KEY_ID"),
"aws_secret_access_key": os.environ.get("TRAVIS_AWS_SECRET_ACCESS_KEY"),
}
RESUME_BUCKET = "resumet"
WAIVER_BUCKET = "waivert"
VACCINE_BUCKET = "vaccinet"
# Json webtoken
JWT_SECRET = os.getenv("TRAVIS_JWT_SECRET", "")
JWT_ALGO = os.getenv("TRAVIS_JWT_ALGO", "")