1
1
#! /bin/bash
2
2
set -ev; # stop on error
3
3
4
+ echo " Insalling dependencies required for tests in codegens/libcurl"
5
+ sudo apt-get install libcurl4-gnutls-dev
6
+
4
7
echo " Installing dependencies required for tests in codegens/java-okhttp"
5
8
pushd ./codegens/java-okhttp & > /dev/null;
6
9
sudo add-apt-repository ppa:openjdk-r/ppa -y
@@ -17,12 +20,12 @@ popd &>/dev/null;
17
20
18
21
echo " Installing dependencies required for tests in codegens/csharp-restsharp"
19
22
pushd ./codegens/csharp-restsharp & > /dev/null;
20
- wget -q https://packages.microsoft.com/config/ubuntu/16 .04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
23
+ wget -q https://packages.microsoft.com/config/ubuntu/20 .04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
21
24
sudo dpkg -i packages-microsoft-prod.deb
22
25
sudo apt-get install apt-transport-https
23
26
sudo apt-get update
24
27
sudo apt-get install dotnet-sdk-6.0
25
- dotnet new console -o testProject
28
+ dotnet new console -o testProject -f net6.0
26
29
pushd ./testProject & > /dev/null;
27
30
dotnet add package RestSharp
28
31
popd & > /dev/null;
@@ -39,27 +42,17 @@ echo "Installing dependencies required for tests in codegens/swift"
39
42
pushd ./codegens/swift & > /dev/null;
40
43
sudo apt-get update
41
44
sudo apt-get install clang-3.6 libicu-dev libpython2.7 -y
42
- sudo apt-get install libcurl3 libpython2.7-dev -y
43
- sudo wget https://swift.org/builds/ swift-5.3-release/ubuntu1604 /swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu16 .04.tar.gz
44
- sudo tar xzf swift-5.3-RELEASE-ubuntu16 .04.tar.gz
45
- sudo chmod 777 swift-5.3-RELEASE-ubuntu16 .04/usr/lib/swift/CoreFoundation/module.map
45
+ sudo apt-get install libcurl4 libpython2.7-dev -y
46
+ sudo wget https://download. swift.org/swift-5.7. 3-release/ubuntu2004 /swift-5.7. 3-RELEASE/swift-5.7. 3-RELEASE-ubuntu20 .04.tar.gz
47
+ sudo tar xzf swift-5.7. 3-RELEASE-ubuntu20 .04.tar.gz
48
+ sudo chmod 777 swift-5.7. 3-RELEASE-ubuntu20 .04/usr/lib/swift/CoreFoundation/module.map
46
49
popd & > /dev/null;
47
50
48
51
echo " Installing dependencies required for tests in codegens/csharp-restsharp"
49
52
sudo apt-get install -y mono-complete
50
53
51
- echo " Installing curl v7.68"
52
- sudo apt-get install -y libssl-dev autoconf libtool make
53
- wget https://curl.haxx.se/download/curl-7.68.0.zip
54
- unzip curl-7.68.0.zip
55
- pushd ./curl-7.68.0 & > /dev/null
56
- ./buildconf
57
- ./configure --with-ssl
58
- make
59
- sudo make install
60
- sudo cp /usr/local/bin/curl /usr/bin/curl
61
- sudo ldconfig
62
- popd & > /dev/null
54
+ echo " Installing curl"
55
+ sudo apt-get install -y curl
63
56
64
57
echo " Installing dependencies required for tests in codegens/shell-httpie"
65
58
sudo apt-get install httpie
0 commit comments