This repository was archived by the owner on Aug 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +53
-9
lines changed Expand file tree Collapse file tree 2 files changed +53
-9
lines changed Original file line number Diff line number Diff line change 1
1
# ## Project specific config ###
2
- language : generic
2
+ language : node_js
3
+ node_js : lts/*
4
+ install : skip
5
+ os : linux
3
6
4
- matrix :
7
+ jobs :
5
8
include :
6
- - os : linux
9
+ # Test Atom versions
10
+ - stage : test
7
11
env : ATOM_CHANNEL=stable
8
-
9
- - os : linux
12
+ - stage : test
10
13
env : ATOM_CHANNEL=beta
11
14
15
+ # Check the commit messages and run the extra lint script
16
+ - stage : test
17
+ install :
18
+ - npm install
19
+ before_script : skip
20
+ script :
21
+ - commitlint-travis
22
+ - npm run lint
23
+
24
+ - stage : release
25
+ # Since the deploy needs APM, currently the simplest method is to run
26
+ # build-package.sh, which requires the specs to pass.
27
+ before_deploy :
28
+ - export PATH=${PATH}:${HOME}/atom/usr/bin/
29
+ deploy :
30
+ provider : script
31
+ skip_cleanup : true
32
+ script :
33
+ - npx semantic-release
34
+
12
35
# ## Generic setup follows ###
13
36
script :
14
37
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
15
38
- chmod u+x build-package.sh
16
- - ./build-package.sh
39
+ - " ./build-package.sh"
17
40
18
41
notifications :
19
42
email :
@@ -23,6 +46,7 @@ notifications:
23
46
branches :
24
47
only :
25
48
- master
49
+ - " /^greenkeeper/.*$/"
26
50
27
51
git :
28
52
depth : 10
@@ -35,6 +59,11 @@ addons:
35
59
apt :
36
60
packages :
37
61
- build-essential
38
- - fakeroot
39
62
- git
40
- - libsecret-1-dev
63
+ - libgnome-keyring-dev
64
+ - fakeroot
65
+
66
+ stages :
67
+ - test
68
+ - name : release
69
+ if : (NOT type = pull_request) AND branch = master
Original file line number Diff line number Diff line change 28
28
}
29
29
},
30
30
"scripts" : {
31
+ "commitmsg" : " commitlint -e $GIT_PARAMS" ,
31
32
"test" : " apm test" ,
32
33
"lint" : " eslint ."
33
34
},
49
50
"tiny-promisify" : " ^1.0.0"
50
51
},
51
52
"devDependencies" : {
53
+ "@commitlint/cli" : " ^7.0.0" ,
54
+ "@commitlint/config-conventional" : " ^7.0.1" ,
55
+ "@commitlint/travis-cli" : " ^7.0.0" ,
56
+ "@semantic-release/apm-config" : " ^5.0.2" ,
52
57
"eslint" : " ^4.6.0" ,
53
58
"eslint-config-airbnb-base" : " ^12.0.0" ,
54
59
"eslint-plugin-import" : " ^2.7.0" ,
55
- "jasmine-fix" : " ^1.3.1"
60
+ "husky" : " ^0.14.3" ,
61
+ "jasmine-fix" : " ^1.3.1" ,
62
+ "semantic-release" : " ^15.9.0"
56
63
},
57
64
"eslintConfig" : {
58
65
"rules" : {
88
95
"1.0.0" : " provideLinter"
89
96
}
90
97
}
98
+ },
99
+ "release" : {
100
+ "extends" : " @semantic-release/apm-config"
101
+ },
102
+ "commitlint" : {
103
+ "extends" : [
104
+ " @commitlint/config-conventional"
105
+ ]
91
106
}
92
107
}
You can’t perform that action at this time.
0 commit comments