-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
79 lines (79 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: rust
rust:
- stable
cache: cargo
services:
- postgresql
addons:
postgresql: '9.6'
branches:
only:
- master
matrix:
include:
- stage: tests
name: Test API
env:
- TEST_SCRIPT="run-api-tests.sh"
- DATABASE_URL=postgres://postgres:password123@localhost/bigneon_test
- stage: tests
name: Test Other
env:
- TEST_SCRIPT="run-other-tests.sh"
- DATABASE_URL=postgres://postgres:password123@localhost/bigneon_test
- stage: tests
name: Test Postman
env:
- TEST_SCRIPT="run-integration-tests.sh"
- DATABASE_URL=postgres://postgres:password123@localhost/bigneon_test
- RUST_BACKTRACE=1
- RUST_LOG=error # Postman output is very verbose
- stage: tests
name: Cargo Audit
env:
- TEST_SCRIPT="run-cargo-audit.sh"
- DATABASE_URL=NA
- stage: deploy
script: skip
deploy:
provider: script
script: bash scripts/travis_tag.sh
on:
branch: master
fast_finish: true
script:
- "./scripts/$TEST_SCRIPT"
before_install:
- export PATH="$PATH:$HOME/.cargo/bin"
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
before_script: []
after_script: []
env:
global:
- FRONT_END_URL="http://localhost"
- BIGNEON_DB=bigneon
- TEST_DATABASE_URL=postgres://postgres:password123@localhost/bigneon_test
- TEST_DATABASE_ADMIN_URL=postgres://postgres:password123@localhost/bigneon_test
- BUILD_DIR="api"
- TARI_URL="TEST"
- COMMUNICATION_DEFAULT_SOURCE_EMAIL="noreply@bigneon.com"
- COMMUNICATION_DEFAULT_SOURCE_PHONE="0112223333"
- TOKEN_SECRET=travis_secret
- TOKEN_ISSUER=bg-on-travis
- STRIPE_SECRET_KEY="sk_test_iGn9c6EJyuF3Gx0QH6uitQlb"
- SENDGRID_API_KEY=" "
- SENDGRID_TEMPLATE_BN_REFUND="d-9ba23272db854578a5609e4e4c608f9f"
- SENDGRID_TEMPLATE_BN_USER_REGISTERED="d-9ba23272db854578a5609e4e4c608f9f"
- SENDGRID_TEMPLATE_BN_PURCHASE_COMPLETED="d-c23ba549dd0749bbb3b244b758c05dd7"
- SENDGRID_TEMPLATE_BN_ORG_INVITE="d-19ea07c6169e4fe887b6527ef16cb1ea"
- SENDGRID_TEMPLATE_BN_TRANSFER_TICKETS="d-f6a449f0281e404899eb4d580bc342a3"
- SENDGRID_TEMPLATE_BN_PASSWORD_RESET="d-193ea5665fc54c8ca19c6325c8e46703"
- SENDGRID_TEMPLATE_BN_USER_INVITE="d-fcf7791b781644a8960820058c9074fd"
- GH_USER_EMAIL='sdbondi@users.noreply.github.com'
- GH_USER_NAME='Travis CI'
- HTTP_KEEP_ALIVE=75
- BLOCK_EXTERNAL_COMMS=1
- TWILIO_ACCOUNT_ID=" "
- TWILIO_API_KEY=" "
- API_KEYS_ENCRYPTION_KEY="test_key"