-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 1.52 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
language: python
python:
- 2.7.15
dist: xenial
sudo: false
env:
- TRAVIS_NODE_VERSION="8.0.0"
before_install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm &&
git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- npm install -g grunt-cli bower xo
- npm install --quiet
- bower install
install:
- pip install --upgrade pip
- pip install --upgrade tox
- pip install --upgrade babel mako crowdin-cli-py
script:
- xo && tox -v --recreate -e "py27-{flake8,linux}"
cache:
directories:
- $HOME/.cache/pip
- bower_components
- node_modules
after_failure:
- cat ./tests/Logs/sickchill.log
after_success:
# don't run if any of these are NOT met
- if ! { [[ ! -z "$CROWDIN_API_KEY" ]] && [[ "$GH_CRED" =~ ^.+:.+$ ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
&& [[ "$TRAVIS_BRANCH" == "master" ]]; }; then exit 0; fi;
- git --version
- git config --global user.name "SickChill"
- git config --global user.email [email protected]
- git config --global push.default current
- git remote rm origin
- git remote add origin https://[email protected]/$TRAVIS_REPO_SLUG.git
- git fetch origin master develop --no-tags
- grunt auto_update_trans
notifications:
irc: "irc.freenode.net#sickchill-builds"
email:
on_success: change
on_failure: change
webhooks:
urls:
- "https://webhooks.gitter.im/e/a5955679aa0a8ab5d1b7"
on_success: change
on_failure: change
on_start: never