Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YAML pipelines for the smoke tests #1234

Merged
merged 27 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
76e0308
Add new arguments to configHelper.ts
SounD120 Jul 30, 2019
932b71e
Revert "Add new arguments to configHelper.ts"
SounD120 Jul 30, 2019
a5b2f99
[Smoke tests] Add versions fixation (#1064)
SounD120 Jul 31, 2019
5020b07
[Smoke tests] Improve software versions locking approach (#1065)
SounD120 Aug 6, 2019
40d8c6d
[Smoke tests] Add process.env.NIGHTLY parameter processing for nightl…
SounD120 Aug 9, 2019
a90504a
Merge branch 'master' into feature/smoke-tests-improvements
SounD120 Aug 12, 2019
5a08520
Merge remote-tracking branch 'remotes/origin/master' into feature/smo…
SounD120 Oct 22, 2019
64e35aa
Merge branch 'master' into feature/smoke-tests-improvements
SounD120 Nov 5, 2019
c8d917a
Initial smoke tests refactoring preparations (#1162)
SounD120 Nov 12, 2019
ffb18ee
Adapt Expo smoke tests for new VS Code driver (#1170)
SounD120 Nov 27, 2019
8f490d8
Merge branch 'master' into update-feature-branch
SounD120 Nov 27, 2019
bdb7b8a
Merge pull request #1172 from microsoft/update-feature-branch
SounD120 Nov 27, 2019
6a693f7
[Smoke tests] Adapt tests for macOS and Linux (#1173)
SounD120 Dec 10, 2019
90447f3
[Smoke tests] Fix Expo 36 workflow for Expo Android on macOS (#1176)
SounD120 Dec 11, 2019
f662c91
Fix Expo 36 workflow for Expo iOS on macOS (#1177)
RedMickey Dec 12, 2019
ed4f01b
[Smoke tests] Update smoke tests docs (#1178)
SounD120 Dec 16, 2019
bb4952d
Merge branch 'master' into feature/smoke-tests-improvements
SounD120 Dec 16, 2019
7e619b3
Remove redundant file
SounD120 Dec 16, 2019
578675b
Fixate Code version for nightly tests
SounD120 Dec 16, 2019
9c2b2f2
Apply suggestions from code review
SounD120 Dec 16, 2019
f762b28
Merge remote-tracking branch 'remotes/origin/master' into feature/smo…
SounD120 Mar 2, 2020
c598281
Merge branch 'feature/smoke-tests-improvements' of https://github.com…
SounD120 Mar 2, 2020
cfa66f5
Squashed commit of the following:
SounD120 Mar 6, 2020
0864b01
Initial YAML pipelines for smoke tests (#1214)
SounD120 Mar 6, 2020
ddd3a41
Merge branch 'master' into feature/smoke-tests-improvements
SounD120 Mar 6, 2020
258bc9f
Prepare YAML smoke tests pipelines for prod (#1215)
SounD120 Mar 25, 2020
c5f9db7
Merge remote-tracking branch 'remotes/origin/master' into feature/smo…
SounD120 Mar 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .ci/smoke/smoke-tests-common-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
steps:
- bash: 'rm -rf $(Agent.WorkFolder)/_tools/node'
displayName: 'Clear Node cache'

- bash: |
rm -rf /tmp/metro-bundler-cache-*
rm -rf /tmp/haste-map-react-native-packager-*
rm -rf ~/.cache/yarn
displayName: Clear RN, Yarn cache
condition: and(succeeded(), or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin')))

- task: NodeTool@0
displayName: Use Node
inputs:
versionSpec: 10.x
checkLatest: true

- task: Npm@1
displayName: 'npm i gulp vsce -g'
inputs:
command: custom
verbose: false
customCommand: 'i gulp vsce -g'

- task: Npm@1
displayName: 'npm ci'
inputs:
command: custom
verbose: false
customCommand: ci

- task: Gulp@0
displayName: 'gulp release'
inputs:
targets: release

- task: CopyFiles@2
displayName: 'Copy Files to: test/smoke/package/resources/drop-win'
inputs:
Contents: '*.vsix'
TargetFolder: 'test/smoke/package/resources/drop-win'

- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))

- bash: |
npm install -g yarn react-native-cli
npm install -g appium@$(appiumVersion)
npm install -g expo-cli@$(expoCLIVersion)
displayName: 'npm install -g yarn react-native-cli expo-cli appium'

- bash: npm install --global windows-build-tools --vs2015
displayName: 'npm install --global windows-build-tools --vs2015'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

- bash: |
export MOCHA_FILE=./ReactNativeSmokeTests.xml
export BASIC_ONLY=""
export NIGHTLY=""
if [ $(nightlyBuild) = true ]; then
NIGHTLY="true"
fi
if [ $(basicOnly) = true ]; then
BASIC_ONLY="--basic-only"
fi
yarn smoke-tests $BASIC_ONLY
displayName: 'Run smoke tests'
env:
DISPLAY: ':99.0'
EXPO_PWD: $(expo-vswdbot-password)

- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: './$(smokeTestDirectory)/vscode/test/smoke/ReactNativeSmokeTests.xml'
failTaskOnFailedTests: true
testRunTitle: React Native extension smoke tests
condition: always()

- task: ArchiveFiles@2
displayName: 'Archive SmokeTestLogs'
inputs:
rootFolderOrFile: SmokeTestLogs
archiveFile: '$(Build.ArtifactStagingDirectory)/SmokeTestLogs_$(Agent.JobName)'
condition: always()

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: SmokeTestLogs'
inputs:
ArtifactName: SmokeTestLogs
condition: always()
21 changes: 21 additions & 0 deletions .ci/smoke/smoke-tests-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
trigger:
- master
pr:
- master

variables:
vswdbotLogin: vswdbot
appiumVersion: 1.16.0
basicOnly: false
expoCLIVersion: latest
nightlyBuild: false
smokeTestDirectory: test/smoke

jobs:
- job: Linux
pool:
name: 'React Native smoke tests - Linux'
steps:
- checkout: self
clean: true
- template: smoke-tests-common-validation.yml
21 changes: 21 additions & 0 deletions .ci/smoke/smoke-tests-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
trigger:
- master
pr:
- master

variables:
vswdbotLogin: vswdbot
appiumVersion: 1.16.0
basicOnly: false
expoCLIVersion: latest
nightlyBuild: false
smokeTestDirectory: test/smoke

jobs:
- job: macOS
pool:
name: 'React Native smoke tests - macOS'
steps:
- checkout: self
clean: true
- template: smoke-tests-common-validation.yml
28 changes: 28 additions & 0 deletions .ci/smoke/smoke-tests-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
trigger:
- master
pr:
- master

variables:
vswdbotLogin: vswdbot
appiumVersion: 1.16.0
basicOnly: false
expoCLIVersion: latest
nightlyBuild: false
smokeTestDirectory: test/smoke

jobs:
- job: Windows
pool:
name: 'React Native smoke tests - Windows'
steps:
- checkout: self
clean: true
- bash: |
cd $APPDATA && cd ../Local
rm -rf ./Temp/metro-cache
rm -rf ./Temp/haste-map-metro-*
rm -rf ./Temp/react-native-*
rm -rf ./Yarn/Cache
displayName: Clear RN, Yarn cache
- template: smoke-tests-common-validation.yml