forked from orbiting/backends
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1.48 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
language: node_js
node_js:
- "12"
cache:
directories:
- node_modules
yarn: true
notifications:
email: false
addons:
postgresql: "9.6"
services:
- elasticsearch
- postgresql
- redis-server
env:
global:
- NODE_ENV=development
- PORT=5020
- SEND_MAILS=false
- FORCE_TEST_END=true
- SESSION_SECRET=testtest
- DEFAULT_MAIL_FROM_NAME='travis'
- DEFAULT_MAIL_FROM_ADDRESS='[email protected]'
- FRONTEND_BASE_URL=http://localhost:5020
- LOCAL_ASSETS_SERVER=true
- ASSETS_SERVER_BASE_URL=http://localhost:5020
- ASSETS_HMAC_KEY=testtest
- PARKING_PLEDGE_ID=00000000-1234-0000-0000-000000000001
- PARKING_USER_ID=00000000-4321-0000-0000-000000000001
- DISPLAY_AUTHOR_SECRET=testtest
- AUTO_LOGIN_REGEX='^([a-zA-Z0-9._%+-]+)@test\.project-r\.construction$'
- DOCUMENTS_RESTRICT_TO_ROLES=member
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH=$HOME/.yarn/bin:$PATH
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.0.deb && sudo dpkg -i --force-confnew elasticsearch-6.3.0.deb && sudo service elasticsearch restart
before_script:
# ElasticSearch takes few seconds to start, to make sure it is available
# when the build script runs add a small delay to your build script
# see https://docs.travis-ci.com/user/database-setup/#ElasticSearch
- sleep 10
script:
- yarn run test:cover
after_success:
- yarn run test:reportCover