forked from bbyars/mountebank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (95 loc) · 4.16 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# OSX agents don't have nvm pre-installed, and installing it manually
# gives a lot more control over testing packaging options
language: ruby
env:
global:
- MB_SLOW_TEST_TIMEOUT=6000
# AWS_ACCESS_KEY
- secure: "H0iUwBPOwRf3+5HGqAXWU65dJIA+4SUltehM3+jiTXsqkxeHux3WqVOouaLlw2n8WaG9y1KMXEZzed6L8p8A3I6V2M+Y1n8qNYT8y/HjCTw4d3U0tiG6ef1ysIChdBOdlwXJT5GPLlLT0y+R4IgPfHd3DMx/aiEgT3O4gGZEchs="
# Roughly ordered slowest to fastest to kick off the slow jobs first,
# except include nodes that trigger other CIs in first 5 since they start in parallel
matrix:
include:
- os: osx
sudo: true
env:
- NODE_VERSION=6.10.3
- MB_GRUNT_TASK='test:pkg deploy:s3'
- os: osx
sudo: false
env:
- NODE_VERSION=6.10.3
- MB_GRUNT_TASK='test:tarball:x64 deploy:s3 jsdoc deploy:docs'
# FIREBASE_TOKEN
- secure: "uplPVyZC7fd3aMDXh46+IrjXCaA7r0VRZplnhSOzATtgZQjSlqHdgLGCXOw+j14oLgsyMNe5AHy9B9TV2xxt6ZDpKNoeAdk2vxPJpVatXD6Cs9jypuiDRq0Nlf8PiBPARucBK6qyR/YF8WvrG+MxahzB373j13YBQ/7rojugnaE="
- os: linux
sudo: true
env:
- NODE_VERSION=6.10.3
- MB_GRUNT_TASK=test:performance
- os: linux
sudo: false
env:
- NODE_VERSION=6.10.3
- MB_GRUNT_TASK='test:npm dist:zip:x64 dist:zip:x86 deploy:s3 trigger:appveyor'
# APPVEYOR_API_TOKEN
- secure: "A4hhAF4npjjpiV+X6u1dt4sHYUDLyB+0mIdovXSbR/eh1jTn1ZnaCwZD8G248N+yf5Kj1jTsUUzT4mxkWSO9uzxA93W7CimLH7iBjPVyOEemuXBlBqxPJAAweB6BhiGpiuPZk2SeC0SVa+gwC+KL3oy/PW4dz8Q5ytL/IE9b3/o="
- os: linux
sudo: true
env:
- NODE_VERSION=6.10.3
- MB_INSTALL_RPM=true
- MB_GRUNT_TASK='test:deb dist:package:rpm deploy:s3 trigger:snapci deploy:heroku deploy:npm'
# HEROKU_API_KEY
- secure: "BQunTTpCSGjhIYiBAXKxuuOluJIhKXdW/94GCsPlK1N8Ln20/nj/0U4qnSH7yASWQWssVG4ttm/cAbjfi+3DS4KDLtBGK1i3IoM+cJ2ADCeG7BHsqJDB0f9JyAkULjIRdkqilzR/tyD+w78pPHd7QbfplLvqUcnt7HVxw9lp4PY="
# NPM_API_KEY
- secure: "IEfctrje4QulHyavIMZYnxljU4XvpMnLR8TzCU8ozeQbdoIOq3/WqBl53Mou2Ie65YAbcMNfLmAvXWgNiKR2jE+K9tOyXsIj+Wbrr4b6X1FHqjkTLw8OCcLFD7kO/aptEOzsTZWbpJKao3mtcshHWWiFeeRDANYK6QMSYwoVNLc="
# SNAPCI_API_KEY
- secure: "AuiPAwCsw2q2xCu765d+jWdM7Hf0bKRfjN0Uwofv1ONUSWvbHDVbfK5GcJqGWvE0surDovgmWdPr9nUJxyUVQ4ONOWn3afQXvrBqXPoPjPuhXhnYNwa1HuH2GmpbL6WnmEJJCvqgw6KUVW3YJeUO+IUVQdfgkJxBYBXAuzkZ+oA="
- os: linux
sudo: false
env:
- NODE_VERSION=6.10.3
- MB_GRUNT_TASK='test:tarball:x64 dist:tarball:x86 deploy:s3 coveralls codeclimate'
# CODECLIMATE_REPO_TOKEN
- secure: "jjJxl1G93oo4cZScpkizdmq142IkK749Ul/4CrpyIwOB80xVVOD/DWyFelCxQ0F/nOt150YOAc1w9UHI8fgY1goAk6cHP/ipzkZ9NIO4x/SjUl0XkWTW7T/riGzn6R+SbjRmWJwbszp4wmwIQj8lAekvYlmvMOR1QpNzBJ4K4x4="
- os: linux
sudo: false
env:
- NODE_VERSION=7.10.0
- MB_RUN_WEB_TESTS=true
- os: linux
sudo: false
env:
- NODE_VERSION=7.10.0
- SONAR=true
# SONARQUBE_LOGIN
- secure: "B+dWqZwbOPbtHlDmvKbIFfL/6YqStww4H8ljoteRHTqrgn3qc+GWdgELBm3ErPJHSyF9WxxA3pirJ6DFEeKxeCfYKeswFiF5Hm/WtBjiZ2k2DDGui9+NsEorHiQpCKY9rsY2H3fSwdTyx0TqVTPda//TGIqWSQEvKIaM4zG3lE8="
- os: linux
sudo: false
env:
- NODE_VERSION=4.4
- os: osx
sudo: false
env:
- NODE_VERSION=4.4
- os: osx
sudo: false
env:
- NODE_VERSION=7.10.0
install:
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- node --version
- bundle install --without development
- if [ "$MB_INSTALL_RPM" = "true" ]; then sudo apt-get update && sudo apt-get install rpm; fi
# AWS_ACCESS_KEY will not be set on pull requests or improperly configured runs triggered through the API
- if [ -n "$AWS_ACCESS_KEY" ]; then export MB_DEPLOY=true; else export MB_DEPLOY=false; fi
- if [ -n "$AWS_ACCESS_KEY" -a -n "`git describe --tags --exact-match 2>/dev/null`" ]; then export MB_PUBLISH=true; else export MB_PUBLISH=false; fi
script:
- echo "MB_DEPLOY - $MB_DEPLOY"
- echo "MB_PUBLISH - $MB_PUBLISH"
- ./build $MB_GRUNT_TASK
- if [[ "$SONAR" = "true" ]]; then scripts/sonar; fi