forked from k0kubun/Nocturn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (53 loc) · 1.99 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
matrix:
include:
- os: osx
osx_image: xcode9.3
language: node_js
node_js: '9'
env:
- PACKAGE_PLATFORM=darwin
- os: linux
services: docker
language: generic
env:
- PACKAGE_PLATFORM=win32
- os: linux
services: docker
language: generic
env:
- PACKAGE_PLATFORM=linux
cache:
directories:
- node_modules
script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -iE 'DEBUG|NODE_|YARN_|NPM_|CI|TRAVIS|BUILD_|PACKAGE_') \
-v ${PWD}:/project k0kubun/node-wine:latest \
/bin/bash -c "cd /project && yarn --link-duplicates --pure-lockfile && yarn build"
else
yarn --link-duplicates --pure-lockfile
yarn build
fi
before_deploy:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -iE 'DEBUG|NODE_|YARN_|NPM_|CI|TRAVIS|BUILD_|PACKAGE_') \
-v ${PWD}:/project k0kubun/node-wine:latest \
/bin/bash -c "cd /project && yarn package"
else
yarn package
fi
deploy:
provider: releases
api_key:
# This is generated by `travis setup releases -r k0kubun/Nocturn`
secure: DdNMIrWGNevS/LQZp9CIT8POq5ojLyyFthnq26atH12ac9VrvEi51I41FLz27xJ516cdyoYrdRXfId7/4nxuR/eLG8aaQoaztkrZ8rwSlnTUyakbTyyC9CYKCDMgwX9wSYzz6gK6USvl1M2/u7avwHdvNQUwsB9rAOVlS4dxqH/vT8LmzI5zjbQiCQ5jp1ICibkWAsx1I0cBHidBEQWZD2fhs1UhLKErH510fQghhK/q7PnSmgNg5jDVpMSFrsZPgid7dRqhOLBnrEbDDW4+DtHHHL3K2giy9ghJytjkPNC3MSg6zReYondDlJ69oDShHwzmW3AqoixhHPaLkG4mXN/f6RmrQ0tSGyQWdsOYh27sFGl136UBuwNUFLtyf/W4+LBCZQiedVcA6BcmIAADfI8u+ygm0WwE3OfWc7+XJeR43vz/kVAtPCHmKrqdkAkUqEy57Qcr4Y+0fv0VD3Kk+QOHcfH5TaTbZW2JpgzfOpQCUpWrl0xPa3OG8CrZ/MAIB4/+wOvAudapwu7eKMfenAZPMEbQ9X4Lio/KhzxcF3TDdBjcnshYS1Zu9mAnh63gylEc8slSt09QEBpDXsGYF5QUQWGXjfT6tsvpEKdPzZraViH/gtx6ogWfnUd24LRnXJPFaWjTl+T9PZVuVoi4cIpLsjSBUTCZSNHYRxKYHsM=
file_glob: true
file: packages/*
skip_cleanup: true
on:
repo: k0kubun/Nocturn
tags: true