-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuide
More file actions
35 lines (21 loc) · 801 Bytes
/
Copy pathGuide
File metadata and controls
35 lines (21 loc) · 801 Bytes
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
Project is on GitHub https://github.com/MityaRo/CI-workshop
- .netrc :
get key from https://dashboard.heroku.com/account
- .travis.yml
get from https://github.com/MityaRo/CI-workshop-helpers/blob/master/.travis.yml
app prefix should be lowercase letters, numbers and dashes
- Sauce Labs environment variables:
SAUCE_USERNAME: rnovosad
SAUCE_ACCESS_KEY:
- wdio.conf.js:
In service providers add:
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
services: add 'sauce' => services: ['sauce','selenium-standalone'],
- test/example_test.js:
var branchName = process.env.TRAVIS_BRANCH
var branchUrl = branchName
? 'http://[your prefix]-' + branchName + '.herokuapp.com'
: 'http://myurl.com'
- app.js:
- var port = process.env.PORT