forked from lando/lando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (77 loc) · 3.45 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
language: node_js
matrix:
include:
- os: linux
env: LANDO_PKG_TYPE=rpm LANDO_SUDO_PASSWORD=
node_js: '6'
- os: linux
env: LANDO_PKG_TYPE=deb LANDO_SUDO_PASSWORD=
node_js: '6'
- os: osx
env: LANDO_PKG_TYPE=dmg LANDO_SUDO_PASSWORD=
node_js: '6'
services:
- docker
sudo: required
before_install:
# Install some node deps
- npm install -g grunt-cli
install:
# Override the normal npm install with npm -E install
- npm -E install
before_script:
# Edit the package.json if this isn't an official release
- if [ -z "$TRAVIS_TAG" ]; then node ./scripts/dev-version.js; fi
# Nice dev helpers to verify our env
- ./scripts/travis-env.sh
# Sanity checks
- node --version
- npm --version
- grunt --version
- node bin/lando.js version
script:
# Run code and styling
- grunt test:code
# Run unit tests
- grunt test:unit
# Make sure we can build the docs
- grunt docs
# Run the build
- mkdir -p release
- grunt pkg
# Run a few tests on the installer
# - if [ $LANDO_PKG_TYPE == "deb" ]; then grunt test:bats; fi
# @TODO: Looks like installing Docker.app is still a problem which prevents us
# from testing
# - if [ $LANDO_PKG_TYPE == "dmg" ]; then grunt test:bats; fi
# Name the release depending on whether it is an official release or not
- if [ -z "$TRAVIS_TAG" ]; then cp -rf dist/lando.$LANDO_PKG_TYPE release/lando-latest-dev.$LANDO_PKG_TYPE; fi
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/lando.$LANDO_PKG_TYPE release/lando-$TRAVIS_TAG.$LANDO_PKG_TYPE; fi
notifications:
email:
recipients:
on_failure: always
deploy:
- provider: releases
api_key:
secure: UXDea6KLTOOiUaUfhYqE7stUY74VE2gOdi3No5NscD0Lg3xB/EMf1wzpVe2nuTpjn1CbDBsGXXHqRRpy2IZj6qp21D39+Wygznv9PpSGPgTAB2ZHRYhpux1Qf/HxD8R/NhvISNMXukNLyd66OyiJlz5RWoLWQvLIiJgT1Uczc3Sj8iOJOmYaxQZku/3/q/LmjKKHVJ9vq7ail4l4SoNmLqh6sdDt9utJtavWHMa0hN5kF+CwoV5Vk/z2RFzYNInGwlJggwV7Y/Kf3TmOQv0CiKgxdEQqR8LfTDGIvkxFwpPSf7JnQYnsZWcOWW08oousN7tjc1L1ow2dzPnT2zRYNyx73FwkjWtZ7SLQCkU95pq6FgSy31+w6iWU6Rvwd9mgdX4sfxgdwxLwiF38Rki5TxXtMRGWW1qYRYvnCcc7gpPUPFv0PzsQYZiFSGxMF3uKdKxmKzYd+tfCMvE5YhfkDtCM+LeJBlSL5hZspMUezXEFtiKSv7fDmBKtGGFUsEruNqMphKEbH1kY1UT9SXUu+uxWN40ciJTXfQXJAGMSh34WkZFAgEP/r61+SZDlpuyYPQ8l8fOOcX2uaJYD0LJBSERVmVAX00SNxWSVdTTGibadRXWWuJ4gd4PGCXUhSJI9r1QLfMLyZtt5P3i9SUL2X4cO9isKysBjOq/5DZXjqq0=
file: release/lando-$TRAVIS_TAG.$LANDO_PKG_TYPE
skip_cleanup: true
on:
repo: kalabox/lando
tags: true
- provider: s3
access_key_id: AKIAJXCGUYNMSXQPAKYQ
secret_access_key:
secure: HstC04mBeuucF2PseyrNLXGZlt5WQ23iwWRrkh4rWTuqq2F4tKkTc+pCB6+Kx64ZE3OGx5T2KdyPOPhLYJOPmYhtTtE0RFI4oF2kEUxvLjTRLrXqDNHKL47PZ5Vel4Z/MTTfWka0M7wCxslBsbomPhO3ljUxlcqChqsh+VT+3JEFYJw4JmEbWHGQ/GnIdTkAksvMfiOFbZHGK+14NjKic9BOwqeBiItSLcydAzURKZOUmcp+u5dNGhHuM+fb98zenhxFIMp75ErwiENv5ER1ja42C+Hyveu3wWc/QIlZHarMULRlH+Zq3yDUCOeOoFjIgeb+H7MGVots8igGIZ4h17/eU8lAO6uRYLLKup/T87CH82VjMDYEDbwsr3XM6f20q/5Fk2dr1XLo+xwhFadIlpJgsbPpmGHu+QuuYczlqdGzw3Qn1IAzU9L7aitjmNQ1ReSGySjlD8sN0nNT7OJYW/4cdy9+RcoYpH4+dbNzjq9DXubJe1EeYQagd/7ebnHvazg5/5Av2whn/F5YjObwno+JrEDzgD2H0pOWfEVBjGT1uOaDIO7Itn1KTJl+gV9Uv+QJ0G/1wP3fnL3KOzMqqFATubtgBUqe12VQ39jUALmgfBKEdXMF2tojwtHkP4b+vQUszpkGxpNih4JmyJYEgc0CZTSNxQP0m+j+3HH/jDc=
bucket: installer.kalabox.io
local-dir: release
acl: public_read
region: us-west-2
skip_cleanup: true
on:
repo: kalabox/lando
branch: master