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

Initial Adoption of Continous Deployment using semantic-release #1128

Merged
merged 3 commits into from
Jan 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Project specific config ###
os: linux
language: node_js
node_js: lts/*
install: skip
os: linux

jobs:
include:
Expand All @@ -18,12 +18,24 @@ jobs:

# Check the commit messages and run the extra lint script
- stage: test
before_script: skip
install:
- npm install
before_script: skip
script:
- commitlint-travis

- stage: release
# Since the deploy needs APM, currently the simplest method is to run
# build-package.sh, which requires the specs to pass, so this must run in
# the main language instead of Node.js.
before_script:
- export PATH=${PATH}:${HOME}/atom/usr/bin/
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release

### Generic setup follows ###
script:
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
Expand All @@ -43,10 +55,10 @@ branches:
git:
depth: 10

dist: trusty

sudo: false

dist: trusty

addons:
apt:
packages:
Expand All @@ -57,3 +69,5 @@ addons:

stages:
- test
- name: release
if: (NOT type = pull_request) AND branch = master
Loading