-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHACKING.txt
81 lines (51 loc) · 2.13 KB
/
HACKING.txt
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
70
71
72
73
74
75
76
77
78
79
80
81
# How to develop and run this code.
## Ubuntu
We need node and npm for this. So lets setup a virtualenv like atmosphere.
First make sure you have the basics installed (which you prolly do if you have done any developing at all.):
$ sudo apt-get update
$ sudo apt-get install build-essential libssl-dev
Next we'll install the venv equivalent:
$ curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh
See https://github.com/creationix/nvm for more about nvm
Then setup node and npm:
$ nvm install 0.11.13
$ nvm alias default 0.11.13
$ nvm use default
In the top level directory:
## For global access to grunt commands
$ npm install -g grunt grunt-cli
## Installs our depedencies for isat
$ npm install
This will install the dependencies.
Run jasmine like so:
$ grunt dev
And open the test runner like so:
open http://localhost:9999/jasmine/SpecRunner.html
Then you can run the tests against saucelabs with your key and secret like so:
$ export SAUCE_USERNAME=YOUR-SAUCE-USERNAME
$ export SAUCE_ACCESS_KEY=YOUR-SAUCE-API-KEY
## Start local server, open sauce tunnel, and run remote browsers against it
$ grunt test
That's it.
## Travis CI setup notes
This is not specifically hacking but to support hacking:)
Again these instructions are for Ubuntu:
$ curl -sSL https://get.rvm.io | bash -s stable --ruby
$ echo "alias rvmify="source /home/robrien/.rvm/scripts/rvm" >> ~/.profile
$ source ~/.profile
$ rvmify
$ gem install travis
Once travis installs do this in the top level of the repo
$ . ~/AeroFS/.saucelabs/koansys-oss
$ travis encrypt SAUCE_USERNAME=$SAUCE_USERNAME --add env.global \
-r koansys/isat
$ travis encrypt SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY --add env.global \
-r koansys/isat
Then log into travis-ci.org and enable the repo under accounts.
The following didn't work.
# $ sudo apt-get install python-software-properties
# $ sudo apt-add-repository ppa:brightbox/ruby-ng
# $ sudo apt-get update
# $ sudo apt-get install ruby2.1 ruby-switch
# $ sudo ruby-switch --set ruby2.1
#Bump to make travis run...