/
Makefile
45 lines (33 loc) · 1.23 KB
/
Makefile
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
default: devel test
devel: bin/buildout buildout-cache/downloads
bin/buildout -c devel.cfg -N -t 3
test:
bin/test -s plonesocial.suite
bin/flake8 src/plonesocial
travis: install_saucelabs travis_build
travis_build: bin/buildout buildout-cache/downloads
bin/buildout -c buildout.cfg -N -t 3
install_saucelabs:
curl -O http://saucelabs.com/downloads/Sauce-Connect-latest.zip
unzip Sauce-Connect-latest.zip
java -jar Sauce-Connect.jar $$SAUCE_USERNAME $$SAUCE_ACCESS_KEY -i $$TRAVIS_JOB_ID -f CONNECTED &
JAVA_PID=$$!
bash -c "while [ ! -f CONNECTED ]; do sleep 2; done"
# for manual runs
robot-server:
bin/robot-server plonesocial.suite.testing.PLONESOCIAL_ROBOT_TESTING
predepends:
sudo apt-get install -y firefox
bin/buildout: bin/python
bin/easy_install zc.buildout==1.6.3
bin/easy_install distribute==0.6.28
bin/python:
virtualenv --clear --no-site-packages --distribute .
buildout-cache/downloads:
[ -d buildout-cache ] || mkdir -p buildout-cache/downloads
clean:
rm -rf bin/* .installed.cfg parts/download
# robot development: start server first
## bin/robot-server plonesocial.suite.testing.PLONESOCIAL_ROBOT_TESTING
# run and rerun tests without restarting the server
## bin/robot src/plonesocial/suite/tests/hello_world.robot