forked from patternfly/patternfly-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 1.52 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
language: node_js
node_js:
- '6'
cache:
directories:
- node_modules
addons:
chrome: stable
notifications:
email: false
env:
global:
- PF_PAGE_BUILDER: jekyll
- secure: KFSt/cOAh8+v9Mz9AroDg+YYGwkuXyC96ZtOMbcWxVAQzplrrpCD9zI0ZuOtKYg/YHu5mscLWbnXOzBug2J162/V9MyicETmXCdFx5ovu/5rTtbxQ6maoRWQQfcKmQVWNdUDF5rJJ7PU9H/gyXWKvbEpkfNRk6Wr7Oc3D8mYtgI=
- secure: SBD8QHLUy1/kCZiLV2OYpqdFTQUWUfkWLx1bdtKFQhWt+aUYBTBdbbb/A7otm+LbBNe5NWWOX1lkciubEs9XlRUdQfS/WqId3c99+457NXeEPtIX6fC92/hrQITFb6vvv7T71ltUs3Q1X2CL82nCas+2LNYlB1/WxKgB8Tr7qPQ=
before_install:
- rvm install 2.3.1
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
- npm install -g bower grunt-cli
- npm install patternfly-eng-release
install: true
script:
- sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -p
after_success:
- 'if [[ "$TRAVIS_SECURE_ENV_VARS" = "true" && "$TRAVIS_BRANCH" = "master-dist" ]]; then
npm prune;
npm run semantic-release-pre;
sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_bump.sh -p;
sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_publish-npm.sh || travis_terminate 0;
npm run semantic-release-post;
sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_publish-webjar.sh -p;
sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_release-all.sh -o;
sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_release-all.sh -r;
fi'
branches:
except:
- /^v\d+\.\d+\.\d+$/