-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (72 loc) · 1.75 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
dist: trusty
os: linux
language: node_js
node_js:
- '12'
env:
global:
- CC_TEST_REPORTER_ID=f7f19f40c8917368645d7fd0455145def3299b425d7977939a85a5139c1e6c04
addons:
chrome: stable
git:
depth: 30
quiet: false
cache:
npm: true
directories:
- ./node_modules
install:
- npm install
before_script:
- git lfs pull
jobs:
include:
- stage: "Lint"
name: "Style lint"
script: npm run stylelint:ci
- stage: "Lint"
name: "TypeScript lint"
script: npm run tslint:ci
- stage: "Test"
name: "App test"
script: npm run test:ci -- --watch=false
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- stage: "Build"
name: "Browser build"
script:
- npm run build:i18n
- npm run build:browser:production
- stage: "Build"
name: "Server build"
script:
- npm run build:i18n
- npm run build:server:production
- stage: "Build"
name: "Server compile"
script:
- npm run build:i18n
- npm run compile:server
- stage: "Versioning"
name: "Semantic versioning"
script: skip
deploy:
provider: script
skip_cleanup: true
script: npm run semver
if: branch = develop
- stage: "Release"
name: "NPM release"
script: skip
deploy:
provider: npm
skip_cleanup: true
email: "darkheresy.contact@gmail.com"
api_key: $NPM_TOKEN
on:
tags: true
if: branch = develop