-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
76 lines (76 loc) · 3.95 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: node_js
node_js:
- 5.10.1
sudo: true
dist: trusty
branches:
only:
- master
- /^v[0-9]/
before_install:
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip build\]'; export SHOULD_BUILD=$?; true
# If not a tag, and we should not build, go ahead and exit early
- if [[ ! $TRAVIS_TAG && $SHOULD_BUILD == 0 ]]; then echo "No build needed, skipping" && exit; fi
- mkdir .travis
- openssl aes-256-cbc -K $encrypted_9dfd91a21fad_key -iv $encrypted_9dfd91a21fad_iv
-in deploy_key.pem.enc -out .travis/deploy_key.pem -d
- eval "$(ssh-agent -s)"
- chmod 600 .travis/deploy_key.pem
- ssh-add .travis/deploy_key.pem
- git remote set-url origin git@github.com:jibeinc/juice.git
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm config set spin false
- npm install -g npm@^3
install:
- npm install -g mversion
- npm install
before_script:
- npm run test
script:
- if [[ $TRAVIS_BRANCH == 'master' &&
$TRAVIS_PULL_REQUEST == 'false' &&
$SHOULD_BUILD == 1 &&
! $TRAVIS_TAG ]]; then
git config user.name "Travis CI";
git config user.email "jjt@jibe.com";
git checkout master;
git pull;
rm -rf dist;
mkdir dist;
npm run build;
fi
after_script:
- codeclimate-test-reporter < coverage/report-lcov/lcov.info
after_success:
# bump bower.json and package.json and push tags
- if [[ ! $TRAVIS_TAG && $SHOULD_BUILD == 1 ]]; then
git add --force dist/;
git commit -m "Update dist [ci skip]";
git push;
mversion patch -m "Release %s [skip build]";
git tag;
git push --follow-tags;
fi
addons:
code_climate:
repo_token:
secure: e3wmwqbVykJ9hICJE963fX2QAqu7+ujunvkZ7Z/oncZ0Ltwwp+z3VEOqjSD4Y+JRKKWOqGk9GlNBjAQa9dgmaZhfLmXHSzZrQAbuXgPX8wh6+n276dr0U9ArSOj2xuJgm2c2QoS0ckzBE9CEitwI4VZGOMkDUXFa+T18ljRxC3hZSbr/NssYza4aA3k8Dpc1vv9Ee9U8qNql1KJ6nUlmBVnk6djUdLsHzCe50MhxizQSJ1hrToeGDypUnwOs9UPcap13OmUOMQ0teViW76U6n5F3xABNnojSH0LD+kY4X16tXabeQvstegzvVNUhJUu2YNYv9RC7njFszKpCTvrW29oFMvJ70O/H14+f0Irhewf4CS/cETE3o/J6CdyecS6s+KhFgVNag8AmrfpaUuJN+pGTSL5gs0hglLG+Ajfbuv3jTRTWHI35jTA/WLbk0vgwLmXCaNWk4+1Ufa60HlMGVaL+d6svj0i6Q7wJQcBs9YZMZJB6IgqYGxugQv1MqrMrfvG1yBW9xLlb+CBpyi7m1elnJPp3NPU8YQO45UWTN9mxMBLieHCtlHYkZc/w2t+MJCa0q4xpHPWrnZ2suYmx81iJwoRdudBMdx2e+aYbdsW2vhWESyAmWLOFaKwpUWnJ7b513CgVHHCOAZnyk0HBPp0AXBXH8OKPeuaKyfY1+Io=
deploy:
- provider: npm
email: rwwagner90@gmail.com
api_key:
secure: zeV3Q7rX2o5dw8O7USGmgISNElKpsf2W9Bb7FPs78v2AoN0cSx0w6QyfwWYwcD2ATyCmV61KAPOA6I8JbrutIGnfXWOJyDRJG6NKxnVPeUqv2VJ5X8nc/Um5cUXsoEDGWwXn9snUH6RCXB88WIwUp8Fn4QBWRSnS8C1bhG4FZCf9s5YOQ52qMahziH5znuSJRHAOXowckDaVvGLKSoXjy7umHcHxbS7oMthfHSkR6gqTMrxjoCXLBc6QHHRhhOnhtbwN06uWfChpieTkw7q9l5adQ2foq0H5It31Qwvs0rkqZIC0wEphG/5jg6MJ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AQxgI++NT7wCmPqAkoO2KwU="
skip_cleanup: true
on:
tags: true
repo: jibeinc/juice