This repository has been archived by the owner on Aug 10, 2018. It is now read-only.
forked from oaeproject/3akai-ux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (64 loc) · 2.72 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
language: node_js
node_js:
- 0.10
branches:
only:
- master
before_install:
- sudo sed -e 's/^\(127\.0\.0\.1.*\)$/\1 admin.oae.com cam.oae.com/' --in-place /etc/hosts
- sudo sed -e 's/^\(::1.*\)$/\1 admin.oae.com cam.oae.com/' --in-place /etc/hosts
- cd ../
- wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-i686.tar.bz2
- tar xjf phantomjs-1.9.2-linux-i686.tar.bz2
- sudo ln -fs pwd/phantomjs-1.9.2-linux-i686/bin/phantomjs /usr/local/bin/phantomjs
- git clone git://github.com/n1k0/casperjs.git
- cd casperjs
- git checkout 1.0.3
- sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
- cd ../3akai-ux
- npm install -d
- "echo '{\"NGINX_USER\": \"root\",\"NGINX_GROUP\": \"root\",\"NGINX_HOSTNAME\": \"admin.oae.com\",\"UX_HOME\": \"/home/travis/build/oaeproject/3akai-ux\",\"LOCAL_FILE_STORAGE_DIRECTORY\": \"/home/travis/build/oaeproject/files\"}' > nginx/nginx.json"
- grunt configNginx
- sudo apt-get -y install python-software-properties
- sudo add-apt-repository -y ppa:nginx/stable
- sudo apt-get update
- sudo apt-get install nginx-full
- sudo cp ./target/optimized/nginx/nginx.conf /etc/nginx/nginx.conf
- sudo mkdir /usr/share/nginx/logs
- sudo service nginx start
- cd ../
- sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
- sudo service cassandra stop
- sudo service cassandra start
- sudo service cassandra status
- sudo service mysql stop
- sudo service memcached stop
- sudo service postgresql stop
- sudo apt-get install -qq graphicsmagick
- npm install -g grunt-cli
- git clone git://github.com/ether/etherpad-lite --branch master etherpad-lite
- cd etherpad-lite
- echo "13SirapH8t3kxUh5T5aqWXhXahMzoZRA" > APIKEY.txt
- ./bin/installDeps.sh
- "sed -i 's/defaultPadText\" : \".*\"/defaultPadText\" : \"\"/g' settings.json"
- node src/node/server.js &
- git clone git://github.com/oaeproject/Hilary.git --branch master ../Hilary
- cd ../Hilary
- npm install -d
- node app.js &
- sleep 20
- ADMIN_COOKIE=$(curl -s --cookie-jar - -d"username=administrator" -d"password=administrator" -e "/" http://admin.oae.com/api/auth/login | grep connect.sess | cut -f 7)
- curl --cookie connect.sess=${ADMIN_COOKIE} -e "/" -d"alias=cam" -d"displayName=Cambridge" -d"host=cam.oae.com" http://admin.oae.com/api/tenant/create
- curl --cookie connect.sess=${ADMIN_COOKIE} -e "/" -d"oae-principals/recaptcha/enabled=false" http://admin.oae.com/api/config
- cd ../3akai-ux
services:
- cassandra
- elasticsearch
- rabbitmq
- redis-server
script:
- grunt test --qunit-host cam.oae.com
notifications:
email:
irc: "irc.freenode.org#sakai"