Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit b551ff6

Browse files
authored
Merge pull request #188 from keplersj/continous-deployment
Initial Adoption of Continous Deployment using semantic-release
2 parents 5b2d0ca + 29e9ecc commit b551ff6

File tree

3 files changed

+54
-11
lines changed

3 files changed

+54
-11
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
.idea
33
npm-debug.log
44
node_modules/*
5-
.github_changelog_generator

.travis.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
11
### Project specific config ###
2-
language: generic
2+
language: node_js
3+
node_js: lts/*
4+
os: linux
35

4-
matrix:
6+
jobs:
57
include:
6-
- os: linux
8+
# Test Atom versions
9+
- stage: test
710
env: ATOM_CHANNEL=stable
8-
9-
- os: linux
11+
- stage: test
1012
env: ATOM_CHANNEL=beta
1113

14+
# Check the commit messages and run the extra lint script
15+
- stage: test
16+
install:
17+
- npm install
18+
script:
19+
- commitlint-travis
20+
21+
- stage: release
22+
# Since the deploy needs APM, currently the simplest method is to run
23+
# build-package.sh, which requires the specs to pass.
24+
before_script:
25+
- export PATH=${PATH}:${HOME}/atom/usr/bin/
26+
deploy:
27+
provider: script
28+
skip_cleanup: true
29+
script:
30+
- npx semantic-release
31+
1232
### Generic setup follows ###
13-
script:
33+
install:
1434
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
1535
- chmod u+x build-package.sh
16-
- ./build-package.sh
36+
- "./build-package.sh"
1737

1838
notifications:
1939
email:
@@ -23,6 +43,7 @@ notifications:
2343
branches:
2444
only:
2545
- master
46+
- "/^greenkeeper/.*$/"
2647

2748
git:
2849
depth: 10
@@ -35,6 +56,11 @@ addons:
3556
apt:
3657
packages:
3758
- build-essential
38-
- fakeroot
3959
- git
40-
- libsecret-1-dev
60+
- libgnome-keyring-dev
61+
- fakeroot
62+
63+
stages:
64+
- test
65+
- name: release
66+
if: (NOT type = pull_request) AND branch = master

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"main": "./lib/main",
1010
"version": "2.0.0",
1111
"description": "Lint CSS on the fly, using csslint",
12-
"repository": "https://github.com/AtomLinter/linter-csslint",
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/AtomLinter/linter-csslint.git"
15+
},
1316
"license": "MIT",
1417
"private": true,
1518
"configSchema": {
@@ -29,6 +32,12 @@
2932
"fs-plus": "^3.0.1"
3033
},
3134
"devDependencies": {
35+
"@commitlint/cli": "^6.1.3",
36+
"@commitlint/config-conventional": "^6.1.3",
37+
"@commitlint/travis-cli": "^6.1.3",
38+
"@semantic-release/apm-config": "^2.0.1",
39+
"husky": "^0.14.3",
40+
"semantic-release": "^15.1.7",
3241
"eslint": "^4.6.0",
3342
"eslint-config-airbnb-base": "^12.0.0",
3443
"eslint-plugin-import": "^2.7.0",
@@ -38,6 +47,7 @@
3847
"linter:2.0.0"
3948
],
4049
"scripts": {
50+
"commitmsg": "commitlint -e $GIT_PARAMS",
4151
"lint": "eslint .",
4252
"test": "apm test"
4353
},
@@ -68,5 +78,13 @@
6878
"2.0.0": "provideLinter"
6979
}
7080
}
81+
},
82+
"release": {
83+
"extends": "@semantic-release/apm-config"
84+
},
85+
"commitlint": {
86+
"extends": [
87+
"@commitlint/config-conventional"
88+
]
7189
}
7290
}

0 commit comments

Comments
 (0)