-
Notifications
You must be signed in to change notification settings - Fork 61
/
.travis.yml
60 lines (55 loc) · 1.99 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
language: java
sudo: required
dist: trusty
jdk:
- oraclejdk8
before_install:
- mkdir -p $HOME/bin
install:
- sudo apt-get update
- sudo apt-get install imagemagick
- sudo apt-get install -y libappindicator1 fonts-liberation
- convert -version
- java -version
- wget -N https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz -P $HOME/bin/
- tar -zxvf $HOME/bin/mongodb-linux-x86_64-3.0.6.tgz
- mkdir -p $HOME/bin/mongodb
- cp -R -n mongodb-linux-x86_64-3.0.6/* $HOME/bin/mongodb
- export PATH=$HOME/bin/mongodb/bin:$PATH
- wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P $HOME/bin/
- sudo dpkg -i $HOME/bin/google-chrome-stable_current_amd64.deb
- nvm install 4
- nvm use 4
- npm install bower gulp -g
- npm install
- bower install
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
- gulp add-headers trim-whitespace replace-crlf
- if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then git status && echo -e "\033[31m\n^ CRLF/header/whitespace related problems found\033[0m\n" && exit 1; fi
- npm run psa
- if test $TRAVIS_TAG; then npm run build-lite; else npm run property-tests && npm test; fi
before_deploy:
- mkdir -p slamdata
- cp -r public slamdata/
- cp jars/quasar.jar slamdata/
- tar cjf slamdata.tar.bz2 slamdata
- gpg --import public.key
- gpg -e -r SlamData --trust-model always slamdata.tar.bz2
deploy:
provider: releases
api-key:
secure: TitL0gINR0xhcMdNBSFKulH7VlS+q1bAkmkWe5H5drTGesqFQprmnoHxPM8Sstfr0DGrAsSKweN/SsUpmVpK8fUE3AcK9kNqt9HXIXr2UotYa1f3jqQKc4+KRXOOf4qjEdUwYRYYMUayR4psA/mijm3WxoVG/jrOjRZAkal/NAY=
file: slamdata.tar.bz2.gpg
skip_cleanup: true
on:
repo: slamdata/slamdata
branch: master
tags: true
notifications:
slack:
secure: EbxkmDGMm5b2K5tpFrcjEmywSzhU6TSJM6VuCzIfpZ78UWqxQ6u2bbpL5a7FYjYqLZI4U/+7p+M85o0Sj58KHgfwWtpgJn84uKvIkSHo808LU/zmCBuiY4kB4z5AnTXVVFdJ2Lx+vjaeBvZA0XNztdDAViT0QM0nTAs7T94oAW8=
email:
on_failure: change