-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (34 loc) · 836 Bytes
/
.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
language: node_js
matrix:
include:
- os: linux
env: LANDO_OSX_TYPE=linux
node_js: '8'
- os: osx
env: LANDO_OSX_TYPE=osx
node_js: '8'
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:
# Nice dev helpers to verify our env
- ./scripts/travis-env.sh
# Sanity checks
- node --version
- npm --version
- grunt --version
- node bin/mmm.js version
script:
# Run code and styling
- grunt test:code
# Run the build
- mkdir -p release
- grunt pkg
# Name the release depending on whether it is an official release or not
- if [ ! -z "$TRAVIS_TAG" ]; then cp -rf dist/mmm-$TRAVIS_TAG release/mmm-$LANDO_OSX_TYPE-x64-$TRAVIS_TAG; fi