Skip to content

Commit c48d111

Browse files
authored
[MOB-10721] Install .NET 6 using Shell Script (#293)
* Install .NET 6 using `dotnet-install` script * Move Appium setup into Captain setup * trigger danger
1 parent 7e8c8ff commit c48d111

File tree

1 file changed

+22
-36
lines changed

1 file changed

+22
-36
lines changed

.circleci/config.yml

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@ commands:
2222
name: Install Pods
2323
working_directory: example/ios
2424
command: pod install --repo-update
25+
setup_captain:
26+
steps:
27+
- run:
28+
name: Install Appium
29+
command: npm install -g appium
30+
- run:
31+
name: Launch Appium
32+
command: appium
33+
background: true
34+
- run:
35+
name: Install .NET 6
36+
command: curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 6.0.1xx
37+
- run:
38+
name: Add .NET to PATH
39+
command: |
40+
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> $BASH_ENV
41+
echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> $BASH_ENV
42+
- run:
43+
name: Clone Captain
44+
command: git clone [email protected]:Instabug/Captain.git ../Instabug.Captain
2545

2646
jobs:
2747
danger:
@@ -76,28 +96,8 @@ jobs:
7696
tag: 2022.04.1
7797
steps:
7898
- checkout
79-
- run:
80-
name: Install Appium
81-
command: npm install -g appium
82-
- run:
83-
name: Launch Appium
84-
command: appium
85-
background: true
99+
- setup_captain
86100
- setup_flutter
87-
- run:
88-
name: Add Microsoft Packages to APT
89-
command: |
90-
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
91-
sudo dpkg -i packages-microsoft-prod.deb
92-
rm packages-microsoft-prod.deb
93-
- run:
94-
name: Install .NET 6
95-
command: |
96-
sudo apt-get update
97-
sudo apt-get install -y dotnet-sdk-6.0
98-
- run:
99-
name: Clone Captain
100-
command: git clone [email protected]:Instabug/Captain.git ../Instabug.Captain
101101
- android/start-emulator-and-run-tests:
102102
system-image: system-images;android-30;google_apis;x86
103103
additional-avd-args: -d "Nexus 5"
@@ -127,26 +127,12 @@ jobs:
127127
resource_class: large
128128
steps:
129129
- checkout
130-
- run:
131-
name: Install Appium
132-
command: npm install -g appium
133-
- run:
134-
name: Launch Appium
135-
command: appium
136-
background: true
130+
- setup_captain
137131
- setup_ios
138132
- run:
139133
name: Build Example App
140134
working_directory: example
141135
command: flutter build ios --simulator
142-
- run:
143-
name: Install .NET 6
144-
command: |
145-
brew tap isen-ng/dotnet-sdk-versions
146-
brew install --cask dotnet-sdk6-0-400
147-
- run:
148-
name: Clone Captain
149-
command: git clone [email protected]:Instabug/Captain.git ../Instabug.Captain
150136
- run:
151137
name: Run E2E Tests
152138
working_directory: e2e

0 commit comments

Comments
 (0)