This repository has been archived by the owner on Apr 28, 2020. It is now read-only.
forked from TEAMMATES/teammates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.39 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
language: java
jdk:
- oraclejdk7
branches:
only:
- master
- release
notifications:
email: false
sudo: required
dist: trusty
addons:
firefox: "46.0"
before_install:
- |
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.txt)|(.png)|(.jpg)|(.gif)|^(LICENSE)|^(docs)'
status_codes=( ${PIPESTATUS[*]} ); git_diff_status=${status_codes[0]}; grep_status=${status_codes[1]}
if [[ $git_diff_status == 0 && $grep_status == 1 && $TRAVIS_PULL_REQUEST != "false" ]]
then
echo "Only doc files were updated in PR, not running the CI."
exit
fi
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid \
--make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1440x900x16"
- nvm install node
before_script:
- export DISPLAY=:99.0
- tar -xjf /tmp/firefox-46.0.tar.bz2 --directory $TRAVIS_BUILD_DIR/
- export PATH="$TRAVIS_BUILD_DIR/firefox:$PATH"
- export PATH="./node_modules/.bin":$PATH
- ./gradlew createConfigs testClasses
- ./gradlew downloadStaticAnalysisTools
- ./gradlew lint --continue
- npm install
- npm run lint
install: true
script:
- npm run build
- ./gradlew appengineRun ciTests
after_failure:
- gem install gist
- ./gradlew generateFailedCmd
after_success:
- ./gradlew jacocoReport
- bash <(curl -s https://codecov.io/bash)
after_script:
- ./gradlew appengineStop