Skip to content

Commit c28c08e

Browse files
committed
feat: add travis ci for auto-deploy builds
1 parent 20b01e3 commit c28c08e

File tree

3 files changed

+88
-4
lines changed

3 files changed

+88
-4
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

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# IDE-SourceKit package
22

3+
[![Build Status](https://badgen.net/travis/atom-ide-community/ide-sourcekit/master)](https://travis-ci.org/atom-ide-community/ide-sourcekit)
4+
35
C, C++, Objective-C, and Swift language support for Atom-IDE, powered by the [SourceKit Language Server](https://github.com/apple/sourcekit-lsp) by Apple.
46

5-
This is still in an experimental package. It hasn't even been released to the Atom package store yet.
7+
This is still in an **experimental** package.
68

79
## Getting Started
810

911
### Install Package
10-
Run `git clone https://github.com/atom-ide-community/ide-sourcekit.git ~/.atom/packages/ide-sourcekit && cd ~/.atom/packages/ide-sourcekit && apm install`
12+
Run `apm install ide-sourcekit`
1113

1214
### Install LSP Package
1315

package.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "ide-sourcekit",
33
"main": "./lib/main",
44
"version": "0.0.0",
5-
"description": "C, Objective-C, C++, and Swift language support for Atom-IDE.",
6-
"keywords": [],
5+
"description": "EXPERIMENTAL: C, Objective-C, C++, and Swift language support for Atom-IDE.",
6+
"keywords": ["atom-package", "atom-ide", "c", "cpp", "c++", "objective-c", "swift", "sourcekit", "apple"],
77
"repository": "https://github.com/atom-ide-community/ide-sourcekit",
88
"license": "MIT",
99
"engines": {
@@ -12,6 +12,15 @@
1212
"dependencies": {
1313
"atom-languageclient": "^0.9.9"
1414
},
15+
"devDependencies": {
16+
"@commitlint/cli": "^7.5.2",
17+
"@commitlint/config-conventional": "^7.5.0",
18+
"@commitlint/travis-cli": "^7.5.2",
19+
"@semantic-release/apm-config": "^6.0.1",
20+
"commitlint": "^7.5.2",
21+
"husky": "^1.3.1",
22+
"semantic-release": "^15.13.3"
23+
},
1524
"configSchema": {
1625
"sourceKitServer": {
1726
"title": "SourceKit server",
@@ -32,6 +41,19 @@
3241
"source.cpp",
3342
"source.objc"
3443
],
44+
"release": {
45+
"extends": "@semantic-release/apm-config"
46+
},
47+
"commitlint": {
48+
"extends": [
49+
"@commitlint/config-conventional"
50+
]
51+
},
52+
"husky": {
53+
"hooks": {
54+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
55+
}
56+
},
3557
"consumedServices": {
3658
"linter-indie": {
3759
"versions": {

0 commit comments

Comments
 (0)