-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.65 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
language: node_js
node_js:
- "6"
env:
matrix:
# react
- INSTALLER=yarn INSTALLER_VERSION=stable NAME=react REPO=https://github.com/facebook/react.git
- INSTALLER=yarn INSTALLER_VERSION=next NAME=react REPO=https://github.com/facebook/react.git
- INSTALLER=npm INSTALLER_VERSION=stable NAME=react REPO=https://github.com/facebook/react.git
- INSTALLER=npm INSTALLER_VERSION=next NAME=react REPO=https://github.com/facebook/react.git
# ghost
- INSTALLER=yarn INSTALLER_VERSION=stable NAME=ghost REPO=https://github.com/TryGhost/Ghost.git
- INSTALLER=yarn INSTALLER_VERSION=next NAME=ghost REPO=https://github.com/TryGhost/Ghost.git
- INSTALLER=npm INSTALLER_VERSION=stable NAME=ghost REPO=https://github.com/TryGhost/Ghost.git
- INSTALLER=npm INSTALLER_VERSION=next NAME=ghost REPO=https://github.com/TryGhost/Ghost.git
install:
- if [[ $INSTALLER == "yarn" ]] && [[ $INSTALLER_VERSION == "stable" ]]; then npm install -g yarn; fi
- if [[ $INSTALLER == "yarn" ]] && [[ $INSTALLER_VERSION == "next" ]]; then npm install -g yarn@rc; fi
- if [[ $INSTALLER == "npm" ]] && [[ $INSTALLER_VERSION == "stable" ]]; then npm install -g npm; fi
- if [[ $INSTALLER == "npm" ]] && [[ $INSTALLER_VERSION == "next" ]]; then npm install -g npm@next; fi
before_script:
- chmod +x *.sh
script:
- export GOOGLE_OAUTH_TOKEN=$(curl --request POST --url https://www.googleapis.com/oauth2/v3/token -d "client_secret=$GOOGLE_OAUTH_CLIENT_SECRET&grant_type=refresh_token&refresh_token=$GOOGLE_OAUTH_REFRESH_TOKEN&client_id=$GOOGLE_OAUTH_CLIENT_ID" | jq -r '.access_token')
# - echo $GOOGLE_OAUTH_TOKEN
- ./$INSTALLER.sh $NAME $REPO