-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (43 loc) · 1.05 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
language: node_js
node_js: '12'
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH="$HOME/.yarn/bin:$PATH"
- npm install lerna -g
install:
- yarn --frozen-lockfile --non-interactive
stages:
- name: test
if: (tag IS blank) OR (type != push) OR (repo != tnocs/csnext)
- name: deploy
if: (tag IS present) AND (type = push) AND (repo = tnocs/csnext)
jobs:
include:
- stage: test
name: 'Test'
script:
- yarn
- yarn build
- yarn test
- stage: deploy
script:
- yarn
- yarn build
deploy:
- provider: script
script: bash scripts/deploy.sh
skip_cleanup: true
on:
repo: tnocs/csnext
tags: true
# - provider: releases
# api_key: $GITHUB_API_KEY
# file: "release/vuetify-${TRAVIS_TAG}.zip"
# skip_cleanup: true
# on:
# repo: tnocs/csnext
# tags: true