-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
81 lines (47 loc) · 1.53 KB
/
commands.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
== TESTS ==
--- CI ---
sudo docker run -i ubuntu /bin/bash (download if not exists)
sudo docker run -i -t ubuntu/jenkins /bin/bash (image commited)
# NO DOCKER:
cd /var/lib/jenkins/jobs/Melhore.me/workspace; nohup nodemon server.js &
webdriver-manager update
nohup webdriver-manager start &
# NO CI SERVER:
npm install;
bower install;
protractor conf.js;
--- UTILs ---
sudo netstat -tulpn | grep 4444 [ou 'tcp']
browser-sync start --proxy "localhost:8080" --files "public/assets/css/*.css, public/index.html"
--- DOCKER ---
# COMMIT:
sudo docker commit 25e24917b685 ubuntu/jenkins
---- KARMA-JASMINE (Unit) ----
karma start [karma.conf.js]
---- PROTRACTOR (Karma) ----
npm install -g protractor
webdriver-manager update
webdriver-manager start
protractor conf.js
# INSTALL JENKINS
sudo apt-get install -y wget
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
# CONFIG JENKINS
sudo vim /etc/default/jenkins: HTTP_PORT=8081
service jenkins start
OR
[~/Develop/node/strider] NODE_ENV=production npm start
# INSTALL PROTRACTOR:
# Protractor (and web-manager)
npm install -g protractor
# INSTALL Node and NPM
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs
sudo apt-get install build-essential
# Python for NPM
# TEM QUE SER PYTHON (2.7 NÃO python3)
sudo apt-get install python