File tree 2 files changed +45
-0
lines changed
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/expect
2
+ log_user 0
3
+ set timeout 10
4
+
5
+ set user [lindex $argv 0]
6
+
7
+ set password [lindex $argv 1]
8
+
9
+ set particle [lindex $argv 2]
10
+
11
+ #spawn /home/travis/.nvm/v0.10.36/bin/particle cloud login
12
+ spawn $particle cloud login
13
+
14
+ log_user 0
15
+
16
+ expect "? Please enter your email address: "
17
+ send "$user\r"
18
+
19
+ log_user 0
20
+
21
+ expect "? Please enter your password: "
22
+ send "$password\r"
23
+
24
+ interact
Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ language : node_js
3
+
4
+ addons :
5
+ apt :
6
+ packages :
7
+ - expect
8
+
9
+ cache :
10
+ directories :
11
+ - " node_modules"
12
+ - " $HOME/bin"
13
+
14
+ before_script :
15
+ - true # npm install -g particle-cli
16
+ - bash <( curl -sL https://particle.io/install-cli )
17
+ - export PATH="$PATH:$HOME/bin"
18
+
19
+ script :
20
+ - ./.particle-cli-login.expect "$particle_email" "$particle_password" "$(which particle)"
21
+ - (pushd powerwatch/electron_rev_3/software && particle compile electron firmware/)
You can’t perform that action at this time.
0 commit comments