This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
92 lines (78 loc) · 1.9 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
81
82
83
84
85
86
87
88
89
90
91
92
### Project specific config ###
language: ruby
rvm:
- 2.5
os: linux
install:
- gem install --no-document rubocop
jobs:
include:
# Test Atom versions
- stage: test
name: "Atom stable with latest Rubocop"
env: ATOM_CHANNEL=stable
- stage: test
name: "Atom stable with Rubocop < 0.52.0"
env: ATOM_CHANNEL=stable
install:
- gem install --no-document rubocop -v '< 0.52.0'
- stage: test
name: "Atom beta with latest Rubocop"
env: ATOM_CHANNEL=beta
- stage: test
name: "Atom beta with Rubocop < 0.52.0"
env: ATOM_CHANNEL=beta
install:
- gem install --no-document rubocop -v '< 0.52.0'
# Check the commit messages
- stage: test
# commitlint requires a current version of Node.js
language: node_js
node_js: lts/*
before_script: skip
install:
- npm install
script:
- commitlint-travis
- stage: release
# Semantic-release requires a current version of Node.js
language: node_js
node_js: lts/*
# Since the deploy needs APM, currently the simplest method is to run
# build-package.sh, which requires the specs to pass.
before_deploy:
- export PATH=${PATH}:${HOME}/atom/usr/bin/
deploy:
provider: script
cleanup: true
script:
- npx semantic-release
before_script:
- rubocop --version
### Generic setup follows ###
script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
- chmod u+x build-package.sh
- "./build-package.sh"
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
git:
depth: 10
dist: xenial
addons:
apt:
packages:
- build-essential
- fakeroot
- git
- libsecret-1-dev
- libgconf-2-4
stages:
- test
- name: release
if: (NOT type = pull_request) AND branch = master