-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (59 loc) · 1.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
language: clojure
sudo: required
dist: trusty
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
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 coffee-script
- coffee -o . -cb src
- ls
- pwd
- npm install wdio-mocha-framework
- npm install http-server -g
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- npm install chromedriver
- cd ../
- git clone [email protected]:Purple-Services/common.git
- cd common
- lein install
- cd ../
- git clone [email protected]:Purple-Services/opt.git
- cd opt
- lein install
- cd ../
- git clone [email protected]:Purple-Services/app-service.git
- cd app-service
- mysql -e "DROP DATABASE if exists ebdb;" -uroot
- mysql -e "DROP DATABASE if exists ebdb_test;" -uroot
- mysql -e "create database if not exists ebdb;" -uroot
- mysql -e "create database if not exists ebdb_test;" -uroot
- lein exec -p scripts/setupdb.clj root_password=
- lein with-profile app-integration-test ring server &
- (cd ../app; java -jar selenium-server-standalone-2.53.0.jar &)
- (cd ../app; http-server -o --cors &)
script:
# - lein with-profile app-integration-test ring server
- (cd ../app/test; ls; node -v; npm -v; npm install; node_modules/.bin/wdio --suite GasPrice)
env:
- TRAVIS_NODE_VERSION="0.12"
# global:
# - CXX=g++-4.8
# - NODE_ENV=development
notifications:
slack:
rooms:
- purpledelivery:LSIV4jgY6MoQMOWpAr6nnpo7#github
on_success: always
on_failure: always
email: false