Skip to content

Commit ec46a02

Browse files
committed
feat: add travis ci support
1 parent aea3dcf commit ec46a02

File tree

3 files changed

+5544
-21
lines changed

3 files changed

+5544
-21
lines changed

.travis.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
### Project specific config ###
2+
language: node_js
3+
node_js: lts/*
4+
os: linux
5+
6+
env:
7+
matrix:
8+
- ATOM_CHANNEL=stable
9+
- ATOM_CHANNEL=beta
10+
11+
script:
12+
- commitlint-travis
13+
14+
stages:
15+
- test
16+
- name: release
17+
if: (NOT type = pull_request) AND branch = master
18+
19+
jobs:
20+
include:
21+
- stage: release
22+
node_js: lts/*
23+
script:
24+
- export PATH=${PATH}:${HOME}/atom/usr/bin/
25+
deploy:
26+
provider: script
27+
skip_cleanup: true
28+
script:
29+
- npx semantic-release
30+
31+
### Generic setup follows ###
32+
install:
33+
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
34+
- chmod u+x build-package.sh
35+
- "./build-package.sh"
36+
37+
notifications:
38+
email:
39+
on_success: never
40+
on_failure: change
41+
42+
branches:
43+
only:
44+
- master
45+
- "/^greenkeeper/.*$/"
46+
47+
git:
48+
depth: 10
49+
50+
sudo: false
51+
52+
dist: trusty
53+
54+
addons:
55+
apt:
56+
packages:
57+
- build-essential
58+
- fakeroot
59+
- git
60+
- libsecret-1-dev

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"atom-ide",
99
"defintion"
1010
],
11+
"scripts": {
12+
"commitmsg": "commitlint -e $GIT_PARAMS"
13+
},
1114
"activationCommands": {
1215
"atom-workspace": "atom-ide-go-to-definition:go-to-definition"
1316
},
@@ -20,9 +23,24 @@
2023
"atom-languageclient": "^0.9.9"
2124
},
2225
"devDependencies": {
26+
"@commitlint/cli": "^7.5.2",
27+
"@commitlint/config-conventional": "^7.5.0",
28+
"@commitlint/travis-cli": "^7.5.2",
29+
"@semantic-release/apm-config": "^6.0.1",
2330
"@types/atom": "^1.31.1",
2431
"@types/node": "^11.10.4",
25-
"prettier": "1.16.4"
32+
"commitlint": "^7.5.2",
33+
"husky": "^1.3.1",
34+
"prettier": "1.16.4",
35+
"semantic-release": "^15.13.3"
36+
},
37+
"release": {
38+
"extends": "@semantic-release/apm-config"
39+
},
40+
"commitlint": {
41+
"extends": [
42+
"@commitlint/config-conventional"
43+
]
2644
},
2745
"consumedServices": {
2846
"definitions": {

0 commit comments

Comments
 (0)