forked from jschuler/pf-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1002 Bytes
/
.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
language: node_js
node_js:
- "8"
sudo: required
cache: yarn
env:
global:
- ENCRYPTION_LABEL: 6c432af47126
- COMMIT_AUTHOR_EMAIL: [email protected]
- COMMIT_AUTHOR_USERNAME: patternfly-build
- TRIGGER_REPO_SLUG: jschuler/pf-org
- TRIGGER_REPO_BRANCH: master
deploy:
provider: pages
skip_cleanup: true
local_dir: out/
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
notifications:
email: false
git:
depth: 1
before_install:
- npm install -g lerna grunt-cli gatsby-cli
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
- export PATH=$HOME/.yarn/bin:$PATH
- yarn bootstrap
install: true
script:
- yarn prebuild
- yarn build
after_success: |
cd "$TRAVIS_BUILD_DIR"
# This generates a `web` directory containing the website.
mkdir -p out/4.0
cp -R $TRAVIS_BUILD_DIR/packages/patternfly-3/_site/. $TRAVIS_BUILD_DIR/out/
cp -R $TRAVIS_BUILD_DIR/packages/patternfly-4/public/. $TRAVIS_BUILD_DIR/out/4.0/