-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
39 lines (39 loc) · 5.56 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
sudo: required
language: node_js # since we are building the prod bundle in travis
node_js:
- "9.4.0"
services:
# we need docker to run the tests; NOTE: tests are run against dev env
- docker
env:
# add secure environment variables
global:
- secure: anKSkkpOGUT4q0PQgJcwVfX1DT37lfXrGA1XNCFBSqTjdlICIwedYIeU87k20t+Fg4ZuYBXwwhvozByFOOkG5JDQ6yFkeuJJBWExfNtR6U/EokB6oO6wVWiqi6YpqF1aI9QojYVN5k5NL1niDRhH2N3M5YhFrCv4JasBIrQ8Z3UD8ou4cauOt7FylA5WCyS2bBM4tSfBOYR5Vsen4rKMqJZDTqIMZpQS3oh74lT/N5u3ClFNw5DBwAgixzfL4um8eE38SxsffDCqZqgbu/9L+2+oHF9C/4Gc5oawnJopxFVUq9ZhgONmjIJPUK7PJHyF1es+AZTjIvEJMDmuFesw+gWz7tEKpsHug/syJZOYZlQtsu3ZyLYiDub8/ug1tBhUpsjJsWtOxRLj2uqDqCoKYC3XccwGkjc0GdIjuTFSnhekZHmkXFd+zpCjJuYIAsx6cym2ig0Hwl+X0h4MtM4DEDKKJ4BbJeb1IlPGmRYlz+t5QIe5sG87DHrTftFjBxb5A/EknhAoAWDuzUbsSHTVAgNs3OPJf21RGPTD2R0MMOiD6/hd7QKJsNNsxwAaoqPs1D9Mdn9oRxyTPdCJdORwJ9lhf+YXbwBZLSSpMcH631JQrszgAZj7uoNODLSAWHBTlp0QUArh1ELP1bMZ1Z2ifMAsT7Bo4h1CTbCtVVt24+8=
- secure: TMduu41/AuBmvT9c1zQT9cOIsFP4CnLOG6iC/kseXZxDUuSHNk+0kwgwGpRGg4fKTWOUPS83fC5wyl16CiqHlhViRbSkyV5ujTlmM2g5IIDbWX7Z7+vJRULXre8Ow7vsa12e4T4FO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AHLpo08TagLB/UZARerz75ehG0pVX7lXgMSos6Z+aKRKkSF/LIRFA0rooGDcXaCGsgUaj36tY=
- secure: UMQXI0vu2bkX9c0cmC9hzaphF0IiaOekUhpX2Rfjhpa/HjaA45ZsSvfzZZKbGRGGLPfISD7pBFAY5SVjl3lVNgYCsDHYxzOfQRuQ/EBAy3sf2UrkqRIzz/vzNOc233D/uhe3r6cn/GujbEBeGWYjGFq+tjZXHyi3J+hl2OjW6kSvRFOr+8z92rbWPY7Nsoh9B5EB4dbawIruUZHviLtbHZs0FO0zh/ZDJF37oGwHyJ+50+tXb8hRgzQM9ZsHLFwZuU6+dEtt8ql+QbYtIhTzKXJ9zKNj8MnMvQmne4jEGfbvhqVKZV/7eO3u44klzjiusarflRiXxnZoDsH4r1LVDSjU5rF9JNlZVUzUywuEwXoffIQ54OTxCeoI5RMklMdWMQgVDbnfZ+pMuYjKNFJVtm0ny4/0s+BswTv7PcMyhJuDot2oGtGabyYzk302d+Z4xPiJuyBiDqBpit+pzTR58rZ6mlkjBOEAdOjvTVYzufbYVmOIK53viONoXA8AiXAFk5n5tzJ4Fu7nmncrfL7L9Oox5FkombBmxETsgY+1Gl8akKRm2Ey+bQrfyjEFGfrZUojvQrG/8jVv/EuLkQ34z6EOrN1SIm8cgLfkfH5wGl8FOfWOcjJigQxeE7Rb3r4dA7rD5pFUPt5qpQ0Ei6O7DpxyeTg/Xsq6XZhDctGqQa8=
before_install:
# decrypt all deploy key files
- bash ci-scripts/decrypt-deploy-keys.sh
before_script:
# spin up the dev docker containers
- docker-compose up --build -d
script:
# run the tests
- "./test.sh"
after_script:
# spin down the dev docker containers
- docker-compose down
before_deploy:
# build the application for prod
- bash ci-scripts/build.sh
deploy:
# deploy to prod
provider: script
script: bash ci-scripts/deploy.sh
skip_cleanup: true # do not clean working dir so we can push build code
on:
branch: master