Skip to content

Commit 3d670bb

Browse files
authored
(enh): Introduce yaml config file for semaphore 2.0 (#2296)
* Create appiumTests.yml * Update appiumTests.yml * Update and rename appiumTests.yml to semaphore.yml * Update package.json
1 parent 31424b1 commit 3d670bb

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.semaphore/semaphore.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: v1.0
2+
name: Initial Pipeline
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
7+
blocks:
8+
- name: Appium tests
9+
task:
10+
secrets:
11+
- name: saucelabs
12+
prologue:
13+
commands:
14+
- checkout
15+
- npm i
16+
- cache restore
17+
jobs:
18+
- name: Quick tests
19+
commands:
20+
- 'npm run test:appium-quick'
21+
- name: Other Tests
22+
commands:
23+
- 'npm run test:appium-other'

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
"test:unit": "mocha test/unit --recursive",
4545
"test:runner": "mocha test/runner --recursive",
4646
"test": "npm run test:unit && npm run test:runner",
47+
"test:appium-quick": "mocha test/helper/Appium_test.js --grep 'quick'",
48+
"test:appium-other": "mocha test/helper/Appium_test.js --grep 'second'",
4749
"def": "./runio.js def",
4850
"dev:graphql": "nodemon test/data/graphql/index.js",
4951
"publish:site": "./runio.js publish:site",

0 commit comments

Comments
 (0)