Skip to content

Commit a8bdf22

Browse files
authored
Run iOS functional tests on azure pipelines (appium#390)
* Set up CI with Azure Pipelines * review comments * update README
1 parent a850639 commit a8bdf22

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz).
5252
- It generates readable changelog
5353
- Setup
5454
- `pip install --user pipenv`
55-
- `pipenv install --dev`
55+
- `pipenv lock --clear`
56+
- `pipenv install --dev --system`
5657
- `pre-commit install`
5758

5859
## Run tests

azure-pipelines.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Xcode
2+
# Build, test, and archive an Xcode workspace on macOS.
3+
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
5+
jobs:
6+
- job: func_test_ios1
7+
pool:
8+
vmImage: 'macOS-10.14'
9+
steps:
10+
- template: ./ci-jobs/functional/run_appium.yml
11+
- script: |
12+
py.test test/functional/ios/find_*.py test/functional/ios/push_file_tests.py test/functional/ios/safari_tests.py
13+
displayName: Run functional tests
14+
- job: func_test_ios2
15+
pool:
16+
vmImage: 'macOS-10.14'
17+
steps:
18+
- template: ./ci-jobs/functional/run_appium.yml
19+
- script: py.test test/functional/ios/appium_tests.py
20+
displayName: Run functional tests

ci-jobs/functional/run_appium.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
steps:
2+
- task: NodeTool@0
3+
inputs:
4+
versionSpec: '10.x'
5+
displayName: Install Node 10.x
6+
- script: npm install -g appium
7+
displayName: Install appium
8+
- task: UsePythonVersion@0
9+
inputs:
10+
versionSpec: '3.x'
11+
- script: brew install ffmpeg
12+
displayName: Resolve dependencies (Appium server)
13+
- script: python setup.py install
14+
displayName: Install python language bindings for Appium
15+
- script: |
16+
pip install pipenv
17+
pipenv lock --clear
18+
pipenv install --system
19+
displayName: Resolve dependencies (Python)
20+
- script: |
21+
git --no-pager log -n1
22+
python --version
23+
ffmpeg -version
24+
appium --version
25+
node --version
26+
displayName: Check versions
27+
- script: appium --relaxed-security &
28+
displayName: Run Appium in background

0 commit comments

Comments
 (0)