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

Commit fe19243

Browse files
authored
build: Craft integration (#98)
* build: Craft integration
1 parent bd139ab commit fe19243

File tree

4 files changed

+49
-41
lines changed

4 files changed

+49
-41
lines changed

.craft.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
github:
3+
owner: getsentry
4+
repo: sentry-webpack-plugin
5+
changelogPolicy: simple
6+
preReleaseCommand: bash scripts/craft-pre-release.sh
7+
targets:
8+
- name: npm
9+
- name: github
10+
tagPrefix: v

.github/release.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis.yml

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,46 @@
11
branches:
22
only:
33
- master
4+
- /^release\/.+$/
45

5-
sudo: false
66
language: node_js
7-
node_js: "8"
87

9-
if: tag IS blank
10-
11-
before_install:
12-
- curl -o- -L https://yarnpkg.com/install.sh | bash
13-
- export PATH="$HOME/.yarn/bin:$PATH"
8+
cache:
9+
yarn: true
10+
directories:
11+
- node_modules
1412

1513
matrix:
1614
include:
17-
- env: NAME="lint"
18-
script:
19-
- yarn lint
20-
21-
- env: NAME="test"
22-
script:
23-
- yarn test
24-
- yarn run codecov
25-
26-
- env: NAME="integration test"
27-
script:
28-
- yarn test:integration
29-
30-
# NODE 6
31-
- env: NAME="test"
32-
node_js: "6"
33-
script:
34-
- yarn test
35-
- yarn run codecov
36-
37-
- env: NAME="integration"
38-
node_js: "6"
39-
script:
40-
- yarn test:integration
41-
42-
# DEPLOY
43-
- env: NAME="deploy"
44-
script:
45-
- npm pack
15+
- name: 'deploy'
16+
node_js: '10'
17+
script: npm pack
4618
after_success:
4719
- npm install -g @zeus-ci/cli
4820
- zeus upload -t "application/tar+npm" *.tgz
21+
- name: 'lint and codecov'
22+
node_js: '10'
23+
script:
24+
- yarn lint
25+
- yarn codecov
26+
- name: 'unit tests [node v10]'
27+
node_js: '10'
28+
script: yarn test
29+
- name: 'unit tests [node v8]'
30+
node_js: '8'
31+
script: yarn test
32+
- name: 'unit tests [node v6]'
33+
node_js: '6'
34+
script: yarn test
35+
- name: 'integration tests [node v10]'
36+
node_js: '10'
37+
script: yarn test:integration
38+
- name: 'integration tests [node v8]'
39+
node_js: '8'
40+
script: yarn test:integration
41+
- name: 'integration tests [node v6]'
42+
node_js: '6'
43+
script: yarn test:integration
4944

5045
notifications:
5146
webhooks:

scripts/craft-pre-release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -eux
3+
OLD_VERSION="${1}"
4+
NEW_VERSION="${2}"
5+
6+
# Do not tag and commit changes made by "npm version"
7+
export npm_config_git_tag_version=false
8+
npm version "${NEW_VERSION}"

0 commit comments

Comments
 (0)