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

Commit

Permalink
Merge pull request #51 from AtomLinter/arcanemagus/fix-cd
Browse files Browse the repository at this point in the history
Fix Continuous Delivery
  • Loading branch information
Arcanemagus authored Apr 22, 2018
2 parents d233489 + f1e27ca commit f0f98e1
Show file tree
Hide file tree
Showing 3 changed files with 4,493 additions and 310 deletions.
76 changes: 76 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
### Project specific config ###
os: linux
language: perl

jobs:
include:
# Test PHP versions
- stage: test
env: ATOM_CHANNEL=stable
- stage: test
env: ATOM_CHANNEL=beta

# Check the commit messages
- stage: test
language: node_js
node_js: lts/*
before_script: skip
install:
- npm install
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

install:
# Install Perl::Critic
- PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install Perl::Critic'

before_script:
- perlcritic --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
- "/^greenkeeper/.*$/"

git:
depth: 10

sudo: false

dist: trusty

addons:
apt:
packages:
- build-essential
- git
- libgnome-keyring-dev
- fakeroot

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

0 comments on commit f0f98e1

Please sign in to comment.