1 | language: node_js
|
2 | node_js:
|
3 | - '4'
|
4 |
|
5 | cache:
|
6 | directories:
|
7 | - node_modules
|
8 |
|
9 | notifications:
|
10 | email: false
|
11 |
|
12 | env:
|
13 | global:
|
14 | - PF_PAGE_BUILDER: jekyll
|
15 | - secure: KFSt/cOAh8+v9Mz9AroDg+YYGwkuXyC96ZtOMbcWxVAQzplrrpCD9zI0ZuOtKYg/YHu5mscLWbnXOzBug2J162/V9MyicETmXCdFx5ovu/5rTtbxQ6maoRWQQfcKmQVWNdUDF5rJJ7PU9H/gyXWKvbEpkfNRk6Wr7Oc3D8mYtgI=
|
16 | - secure: SBD8QHLUy1/kCZiLV2OYpqdFTQUWUfkWLx1bdtKFQhWt+aUYBTBdbbb/A7otm+LbBNe5NWWOX1lkciubEs9XlRUdQfS/WqId3c99+457NXeEPtIX6fC92/hrQITFb6vvv7T71ltUs3Q1X2CL82nCas+2LNYlB1/WxKgB8Tr7qPQ=
|
17 |
|
18 | before_install:
|
19 | - rvm install 2.3.1
|
20 | - if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
|
21 | - npm install -g bower grunt-cli
|
22 | - npm install patternfly-eng-release
|
23 |
|
24 | install: true
|
25 |
|
26 | script:
|
27 | - sh -x ./node_modules/patternfly-eng-release/scripts/_build.sh -p
|
28 |
|
29 | after_success:
|
30 | - 'if [[ "$TRAVIS_SECURE_ENV_VARS" = "true" && "$TRAVIS_BRANCH" = "master-dist" ]]; then
|
31 | npm prune;
|
32 | npm run semantic-release-pre;
|
33 | sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_bump.sh -p;
|
34 | sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_publish-npm.sh || travis_terminate 0;
|
35 | npm run semantic-release-post;
|
36 | - sh -x ./node_modules/patternfly-eng-release/scripts/semantic-release/_publish-webjar.sh -p;
|
37 | fi'
|
38 |
|
39 | branches:
|
40 | except:
|
41 | - /^v\d+\.\d+\.\d+$/
|