-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
45 lines (45 loc) · 2.5 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
language: php
php:
- 5.6
- 7.1
env:
global:
- P2_THEME_CORE_DIR=$TRAVIS_BUILD_DIR
- PL_STARTER_DIR=$TRAVIS_BUILD_DIR/../pattern-lab-starter
matrix:
- TRAVIS_NODE_VERSION="8"
- TRAVIS_NODE_VERSION="10"
- TRAVIS_NODE_VERSION="12"
git:
depth: 3
before_install:
- composer self-update
- ". $HOME/.nvm/nvm.sh"
- nvm install $TRAVIS_NODE_VERSION
- nvm use $TRAVIS_NODE_VERSION
- npm install -g npm@latest
- php --version
- node --version
- npm --version
install:
- cd $P2_THEME_CORE_DIR && npm install
- cd $P2_THEME_CORE_DIR && npm test
before_script:
- git clone https://github.com/phase2/particle.git $PL_STARTER_DIR
- cd $PL_STARTER_DIR && git checkout release/9.x
- cd $PL_STARTER_DIR && npm install && npm run setup
- cd $PL_STARTER_DIR && npm link $P2_THEME_CORE_DIR
script:
- cd $PL_STARTER_DIR && npm run compile && cd $P2_THEME_CORE_DIR
notifications:
flowdock:
secure: RBLFcGBNV8iBA3pBGqGzq5o2Kt+X0IESDtuWnamGurhXItdd0Qh8LZwGmbcZdBuncJQ/WvC5/umCZykf0BeMOiu5TnhJKH3ett0qQT8dxJI9aykwbk/+xyCX09tQJ6jejhcDmu394SUlXYb8DBPnlmE345EVbtjFt9Wxo+ZskCo=
deploy:
provider: npm
on:
tags: true
repo: phase2/p2-theme-core
api_key:
secure: EUx2PkAsoPz9KGYdIrkqrziQhcAp24jIygAq1yx3ZevVG2aglzW7YykUce+jeRb+TandL7MVqZ90djWwpgVCTR4EtpPyBzG2t/rg5wB590dnTKEzEA+X3IghgVyaxuyX7+39vN5eMUetXYzIqON19GqQlDTDT1CGdFl+xJy+rQjUtfL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