-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy path.travis.yml
37 lines (37 loc) · 1.14 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
language: node_js
node_js:
- 10
cache:
npm: true
directories:
# cache folder with Cypress binary
- ~/.cache
dist: xenial
env:
global:
# Used by cypress tests to test payments.
# These are the test keys, so they are not secret. By adding them here,
# instead of encrypting them or adding them to Travis settings, it means
# we can run the tests against PRs from forks of the project.
- STRIPE_PUBLISHABLE_KEY=pk_test_8z7r9ZpQQcaduYfZlREiNfhP
- STRIPE_SECRET_KEY=sk_test_Jtj2Ibwg2DQzT3ZlxF196Dpp
install:
- sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
- npm ci
script:
- script/test
- docker-compose -f docker-compose.production.yml up -d
- docker-compose -f docker-compose.production.yml run web ./manage.py migrate
- $(npm bin)/cypress run --record --key 88257c2f-8d2e-464c-878b-650cace8563e
after_script:
# For debugging
- docker-compose -f docker-compose.production.yml logs
notifications:
slack:
rooms:
- embassy-network:joFu5a311yAWnrF7DQGKtl02#modernomad-notify
email:
recipients:
on_success: change
on_failure: always