forked from eliahexe/share-mrdemonwolf-me
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (53 loc) · 1.39 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
59
60
61
62
63
notifications:
email: false
language: node_js
node_js:
- 12
cache: npm
services: mongodb
git:
quiet: true
addons:
hosts:
- mrdemonwolf.me
- mrdemonwolf.local
# branches:
# only:
# - master
# - development
env:
global:
- DATABASE_URI=mongodb://localhost:27017/share
- SESSION_SECRET=thisistesting
- JWT_SECRET=thisistesting
- TITLE=Share
- FULL_DOMAIN="https://www.mrdemonwolf.local"
- FOOTER_TEXT=MrDemonWolf
- FOOTER_LINK="https://www.mrdemonwolf.me"
- SHORT_TITLE=Share
- DESC="Advanced uploader with web front-end for images,files,and text. Built with
ShareX in mind. Licensed under MIT and is free to use."
- FILE_CHECK=true
- CREDIT=true
- SHOW_VERSION=true
- SIGNUPS=true
- SIGNUP_TERMS=true
before_install:
- echo "DATABASE_URI=$DATABASE_URI" > ./.env
- echo "SESSION_SECRET=$SESSION_SECRET" >> ./.env
- echo "JWT_SECRET=$JWT_SECRET" >> ./.env
- echo "TITLE=$TITLE" >> ./.env
- echo "FULL_DOMAIN=$FULL_DOMAIN" >> ./.env
- echo "SHORT_TITLE=$SHORT_TITLE" >> ./.env
- echo "FOOTER_TEXT=$FOOTER_TEXT" >> ./.env
- echo "FILE_CHECK=$FILE_CHECK" >> ./.env
- echo "CREDIT=$CREDIT" >> ./.env
- echo "SHOW_VERSION=$SHOW_VERSION" >> ./.env
- echo "SIGNUPS=$SIGNUPS" >> ./.env
- echo "SIGNUP_TERMS=$SIGNUP_TERMS" >> ./.env
after_script:
- rm ./.env
install:
- npm install
script:
- npm run test