forked from TheCricket/developer-rig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 958 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
# Build with latest nodejs available on Travis
language: node_js
# Lock compatible node versions
node_js:
- "node"
- "9"
- "8"
# Build on Ubuntu Trust 14.04
dist: trusty
# "sudo: required" forces build in a complete virtual environment rather than containerized
sudo: required
# Build and Test
script:
- yarn test
- yarn build
# Publish coverage results to coveralls.io
after_success:
- npm install -g travis-deploy-once
- travis-deploy-once "coveralls < coverage/lcov.info"
before_deploy:
- cd $TRAVIS_BUILD_DIR
- echo $TRAVIS_TAG > ./.release
- sudo zip -rX devrig.zip ./* -x "*/.*"
- sudo zip -r devrig.zip .release
# Deploy to GitHub Releases (api key is encrypted)
# Deploy only master built on latest stable version of node
deploy:
provider: releases
api_key: $GH_TOKEN
file: $TRAVIS_BUILD_DIR/devrig.zip
skip_cleanup: true
on:
repo: twitchdev/developer-rig
branch: master
node_js: "9"
tags: true