-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
32 lines (32 loc) · 2.1 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
sudo: false
language: node_js
before_install:
- gem install sass
node_js:
- iojs
cache:
directories:
- node_modules
script: npm test
after_success: |
if ([ ! -z "$DEPLOY_TOKEN" ] &&
[ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" ] &&
[ -z "$TRAVIS_TAG" ] &&
[ "$TRAVIS_PULL_REQUEST" == "false" ]); then
echo "Deploying";
git config --global user.email "$DEPLOY_EMAIL";
git config --global user.name "$DEPLOY_NAME";
git remote rm origin;
git remote add origin "https://$DEPLOY_USER:[email protected]/$TRAVIS_REPO_SLUG.git";
npm run-script deploy;
echo "Deployed";
else
echo "Skipped deploy"
fi
env:
global:
- DEPLOY_BRANCH="live"
- DEPLOY_NAME="necccc"
- DEPLOY_EMAIL="[email protected]"
- secure: ovqXKyl1VIaBJgftdh2mfgeOOV/Eq7eLXEtaAqafyhFF+LsI+oKWnjeyVTGDtmLRoGCMl0EzqOfclbbMEgg7rzKjiymGGvUfh2kMHQAEKg8rupFFtk/36S4AJZ+AADv+G7KRrW6VWkpwNasmUmKqVcCUYeuz2pZkeeIMtRCZcmSLnTBa0mRJMdOPTsFCGD0XYqUEvyr5ehWKu0izQzjS0vz3eqhj5LabZJ5TBGzOKUl0xwpJSllFKBMCeSrIKqFwxbsirML0bnEOT6pMDbRqZzkdAnWfIiOrokaCHkkY1Z/5iOHgx0F0Z1Q1ds0Qi1yWfVEDJnTauRvA04tdwvy7c5zKP7gXd6ZEJKeLCKaHO5Xmce72dOSebaCRmFbIrCyv+IwA/WhU54RoLC+jUyx+FGPJB3isxAfCI7UYgJGuAv8dr9ghK4Eup6BFNFb/RnzPakHX6PsHVwHcicMphuIzFq4IhaP2yy4RVf+xWioNhjivvo8s136aQe4sZBWMpURvIfY3zAKBOfPv510xXicsY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