-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
executable file
·68 lines (65 loc) · 3.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
dist: trusty
sudo: required
language: node_js
node_js:
- node
branches:
except:
- gh-pages
notifications:
email: false
services:
- docker
jobs:
include:
- stage: Build
name: "Build Docker images"
install: cd scripts && npm ci && cd ..
script: node scripts/build
env:
# DEPLOY_SETTINGS_JSON='{"CI":[{"type":"docker","options":{"user":"","pass":""}}]}'
- secure: HYDbAUFc6muMg6mkpyWqIiNi/sC4//fUcTBeEC3/dV2s3HxD3wXDIcO+yn3HhQnSHqA+7LHGCDVjeWIFpw6+jbSSWsSPbr9U6pyQHQHk+jNOPpLi9J2QiFS5z/Tr9sN+ca+fOv/xN8/RK1uicFwT5nZi0J96jGzrDDSCfYFhQWmaAy8dHmO/MF2ssjbQTTXePIg8x3nYsQEInVALh7iGmg3QBHC5wswLFGzH8rKc2CfQ6PJ4BQrJCkM9nERqrICp+YGCXjMo3jvrQ2qzepHKcLrl1Pst1kkgjjDi2/3NxbsyuIfSmwYtvX4GwbVJMXLLbHO//AmVH5gwQRaYPZJHJW6AVA3ByyiE3AeatogLyE5lfcDS59p6ov70Mn3kbH9M+tNHu7tGtMIkoslVAVmLkm+0Nyl8quEXr3ZcCv/Gs0JFqUZZya5Dmax9wq9QnDr/iEeoKHoW/g9I5gfQSGOvOdvzJOZH7HAVpoWP35Ufpt4u0Dc43rh867R7yog7FQFylBDSKA588/pzA+e3UakU8pLcy/D31H5F+h+dV2fS1O04Vjt48q6e8QI8lQC/vPNd9HBn0Yu63n2CJ1iwwki591mio+Bji3qlHEQpekXTQXS07smcS6wW8zoidyX0QW+3hEDf1DdcirAZPVY1PM9h/N7RpotNXvgY6IE1h+e/o14=
- stage: Test
name: "Unit Tests"
install:
- cd scripts && npm ci && cd ..
- docker pull zevere/webapi-borzoo:unstable-solution
env:
- image_tag=zevere/webapi-borzoo:unstable-solution
script: node scripts/test/borzoo.unit.test.js
- name: "MongoDB Integration Tests"
install:
- cd scripts && npm ci && cd ..
- docker pull zevere/webapi-borzoo:unstable-solution
env:
- image_tag=zevere/webapi-borzoo:unstable-solution
script: node scripts/test/mongo.integration.test.js
- name: "Borzoo Systems Integration Tests"
install:
- cd scripts && npm ci && cd ..
- docker pull zevere/webapi-borzoo:unstable-solution
env:
- image_tag=zevere/webapi-borzoo:unstable-solution
script: node scripts/test/webapp.integration.test.js
- name: "Postman Tests"
install: cd scripts && npm ci && cd ..
script: echo ToDo
- stage: Deploy
name: "Deploy"
script: skip
install:
- cd scripts && npm ci && cd ..
- docker pull zevere/webapi-borzoo:unstable
env:
# DEPLOY_SETTINGS_JSON='{"Production":[
# {"type":"docker","options":{"source":"zevere/webapi-borzoo:unstable","target":"zevere/webapi-borzoo","user":"","pass":""}},
# {"type":"heroku","options":{"app":"zv-webapi-borzoo","source":"zevere/webapi-borzoo","dyno":"web","user":"","token":""}}
# ]}'
- secure: VA5xyC5Rofe6s1NYpWyx9jt8h9gyKLlQffc4LTZT/aA3gmTTPrnKmqqGR+35oRUY2r8W2DQHDQfkBdv9i96XJKYft7L3rYH6CxLefpErE5cpl1lohwBha/SvLYToAWiWkOmsIwgS6B2v6YUNO+xRSnyWkAMLf7l2Ha2m7OqPer/nNk/8eO0gjNdwZkfRYT5VKDWdteyB3PR32vScCq1swcDB/jG/IrLKuY819gvSoEljeRHO9z9DKb3Xq+VZCyugfh332FP4TyLs+pTPA3G+6zPkx7rrp1EArzU5kQT4E3huUZZK+RbK+uEHMv13euuIqI8FqrDgWdljy0rYxLi77d1Hy2kfRoMiZkWGVaada7yrtE5CD6YHrSdd/zHs6Q1U99NjO6AFcBa/a49bs26E/H6igpLE/ESfA4CQMPOnxm3CjfNPH4rhlA2po9H7R/skh0R9aTFtmex1r3dFdqon7w7l0PNCZvhWFrgX/pG8qXufPvNoIFajLLaWeXno5bBPiyloRHADWTzEtp71Tj7tUS/d03Px0gdgm3cqttlhiF0VDq+6z4ZrOZ8OIF8Bp5CeBOL956bdSN1gGbsT9II0KRhDr4gq9uByPthkFVc2649htm+M9IOsiqWH1/8DJrRAvKPXnBVniJdG3w9eURMe3Mcx/NRVtL6JJmRi4x2umpw=
deploy:
- provider: script
skip_cleanup: true
script: node scripts/deploy Production
on:
branch: master
# Disable "Build pushed pull requests"