Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Feature/windows functional tests #153

Merged
merged 32 commits into from
Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5aacb2b
Remove the attached folder
dmbarra May 25, 2020
bd27d45
Remove the old build to use new approuch
dmbarra May 25, 2020
8e4358b
Change CircleCi image
dmbarra May 25, 2020
bb70b4e
Finalize the container windows
dmbarra May 25, 2020
0fd3e61
Create CircleCI container Windows
dmbarra May 25, 2020
3cc4f25
Fix circleCI identation
dmbarra May 25, 2020
279cd7f
Fix circleCI yml
dmbarra May 25, 2020
2f06d93
Add windows at pipeline
dmbarra May 25, 2020
55b619a
Change windows executor
dmbarra May 25, 2020
b8f474b
Remove Team test for input
dmbarra May 26, 2020
52018a5
Add OS verification
dmbarra May 26, 2020
f949cb6
Add condition for skipped windows multi steps
dmbarra May 27, 2020
6d903bd
Add single config for pipeline
dmbarra May 27, 2020
515a073
Revert change build requirements
dmbarra May 27, 2020
689ddfb
Merge remote-tracking branch 'origin/master' into feature/windows_fun…
dmbarra Jun 3, 2020
26746a5
Rework to fix merge problem
dmbarra Jun 3, 2020
96758c6
Fix lint issue
dmbarra Jun 3, 2020
8eb1462
Change the requirement for unit-test
dmbarra Jun 3, 2020
ee18216
Change init for windows to use stdin
dmbarra Jun 4, 2020
bdbe9bb
Change stdin windows for using Write-Output instead echo
dmbarra Jun 4, 2020
febe333
Merge remote-tracking branch 'origin/master' into feature/windows_fun…
dmbarra Jun 4, 2020
0ae9dce
Working to solve problem at CI
dmbarra Jun 4, 2020
2f915eb
Merge remote-tracking branch 'origin/master' into feature/windows_fun…
dmbarra Jun 5, 2020
cdd8659
Disable jobs temporally for avoid problems with credit
dmbarra Jun 5, 2020
c875cca
Fix invalid caracter output
dmbarra Jun 8, 2020
b512627
Remove not necessary jobs for testing
dmbarra Jun 8, 2020
d89b6f1
Remove another tests temporally
dmbarra Jun 8, 2020
8309bbd
Change way to set Path
dmbarra Jun 8, 2020
6fa3947
Fix locally the tests
dmbarra Jun 8, 2020
2a69074
Change polices for executor-circleCI
dmbarra Jun 8, 2020
1bd9dac
Revert temporary modifications for build windows job
dmbarra Jun 9, 2020
ca73c6b
Split win and unix into different files
dmbarra Jun 9, 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
98 changes: 75 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: 2.1

orbs:
windows: circleci/windows@2.4.0

references:
images:
go: &GOLANG_IMAGE cimg/go:1.14
Expand Down Expand Up @@ -44,6 +47,7 @@ references:
only:
- qa
- /^pull\/.*$/
- /^feature.*/

executors:
ritchie-tests-executor:
Expand Down Expand Up @@ -74,6 +78,13 @@ executors:
user: root
working_directory: /workspace

windows-executor:
working_directory: /workspace
resource_class: windows.medium
shell: powershell.exe -ExecutionPolicy Unrestricted
machine:
image: windows-server-2019

jobs:
lint:
executor: ritchie-executor
Expand Down Expand Up @@ -139,7 +150,7 @@ jobs:
when: always
command: bash <(curl -s https://codecov.io/bash)

functional_test_single:
unix_functional_test_single:
executor: ritchie-executor
environment:
<<: *ENVIRONMENT
Expand All @@ -158,7 +169,7 @@ jobs:
go mod download
make functional-test-single

functional_test_team:
unix_functional_test_team:
executor: ritchie-executor
environment:
<<: *ENVIRONMENT
Expand All @@ -177,6 +188,49 @@ jobs:
go mod download
make functional-test-team

windows_functional_test_team:
executor: windows-executor
environment:
<<: *ENVIRONMENT
steps:
- checkout
- attach_workspace:
at: /workspace/dist
- run:
name: Install GO
command: |
choco install -y golang
- run:
name: Set Enviroment PATH
command: |
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\workspace\workspace\dist\windows\team", "Machine")
- run:
name: Running Functional tests for team
command: |
go test -v (go list ./functional/team/... | grep -v vendor/)

windows_functional_test_single:
executor: windows-executor
environment:
<<: *ENVIRONMENT
steps:
- checkout
- attach_workspace:
at: /workspace/dist
- run:
name: Install GO
command: |
choco install -y golang
- run:
name: Set Enviroment PATH
command: |
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\workspace\workspace\dist\windows\single", "Machine")
- run:
name: Running Functional tests for single
command: |
go test -v (go list ./functional/single/... | grep -v vendor/)


build:
executor: ritchie-executor
branches:
Expand Down Expand Up @@ -267,50 +321,48 @@ workflows:
<<: *FILTERS_CHECK_CODE
requires:
- horus
- lint
- build:
name: build-code
filters:
<<: *FILTERS_CHECK_CODE
requires:
- unit-test
- functional_test_single:
name: functional_test_single_code
- unix_functional_test_single:
name: unix-functional-test-single-code
filters:
<<: *FILTERS_CHECK_CODE
requires:
- build-code
- functional_test_team:
name: functional_test_team_code
- unix_functional_test_team:
name: unix-functional-test-team-code
filters:
<<: *FILTERS_CHECK_CODE
requires:
- build-code
- unit_test:
name: unit-tests
filters:
<<: *FILTERS_CHECK
- build:
filters:
<<: *FILTERS_CHECK
requires:
- unit-tests
- functional_test_single:
- windows_functional_test_team:
name: windows-functional-test-team-code
filters:
<<: *FILTERS_CHECK
<<: *FILTERS_CHECK_CODE
requires:
- build
- functional_test_team:
- build-code
- windows_functional_test_single:
name: windows-functional-test-single-code
filters:
<<: *FILTERS_CHECK
<<: *FILTERS_CHECK_CODE
requires:
- build
- build-code
- delivery:
name: delivery
filters:
<<: *FILTERS_DELIVERY
requires:
- functional_test_single
- functional_test_team
- unix-functional-test-single-code
- unix-functional-test-team-code
- windows-functional-test-single-code
- windows-functional-test-team-code
- release:
name: release
filters:
<<: *FILTERS_RELEASE
requires:
Expand Down
Loading