Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Openssl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Rust Openssl
Commits
e7744874
Commit
e7744874
authored
9 years ago
by
Steven Fackler
Browse files
Options
Downloads
Patches
Plain Diff
Try cross compiling
parent
531d516e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
openssl/test/build.sh
+6
-2
6 additions, 2 deletions
openssl/test/build.sh
openssl/test/run.sh
+18
-1
18 additions, 1 deletion
openssl/test/run.sh
with
24 additions
and
3 deletions
openssl/test/build.sh
+
6
−
2
View file @
e7744874
#!/bin/bash
#!/bin/bash
set
-e
set
-e
if
[
$TRAVIS_OS_NAME
-eq
"osx"
]
;
then
if
[
$TRAVIS_OS_NAME
==
"osx"
]
;
then
exit
0
exit
0
fi
fi
if
[
$TARGET
!=
""
]
;
then
FLAGS
=
"os/compiler=
$TARGET
-"
fi
mkdir
/tmp/openssl
mkdir
/tmp/openssl
cd
/tmp/openssl
cd
/tmp/openssl
curl https://openssl.org/source/openssl-1.0.2e.tar.gz |
tar
--strip-components
=
1
-xzf
-
curl https://openssl.org/source/openssl-1.0.2e.tar.gz |
tar
--strip-components
=
1
-xzf
-
./config
--prefix
=
$HOME
/openssl shared
./config
--prefix
=
$HOME
/openssl shared
$FLAGS
make
make
make
install
make
install
This diff is collapsed.
Click to expand it.
openssl/test/run.sh
+
18
−
1
View file @
e7744874
#!/bin/bash
#!/bin/bash
set
-e
set
-e
MAIN_TARGETS
=
https://static.rust-lang.org/dist
if
[
$TEST_FEATURES
==
"true"
]
;
then
if
[
$TEST_FEATURES
==
"true"
]
;
then
FEATURES
=
"tlsv1_2 tlsv1_1 dtlsv1 dtlsv1_2 sslv2 sslv3 aes_xts aes_ctr npn alpn rfc5114 ecdh_auto pkcs5_pbkdf2_hmac"
FEATURES
=
"tlsv1_2 tlsv1_1 dtlsv1 dtlsv1_2 sslv2 sslv3 aes_xts aes_ctr npn alpn rfc5114 ecdh_auto pkcs5_pbkdf2_hmac"
fi
fi
...
@@ -11,4 +13,19 @@ if [ $TRAVIS_OS_NAME != "osx" ]; then
...
@@ -11,4 +13,19 @@ if [ $TRAVIS_OS_NAME != "osx" ]; then
export
LD_LIBRARY_PATH
=
$HOME
/openssl/lib:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
=
$HOME
/openssl/lib:
$LD_LIBRARY_PATH
fi
fi
cargo
test
--manifest-path
=
openssl/Cargo.toml
--features
"
$FEATURES
"
if
[
$TARGET
!=
""
]
;
then
FLAGS
=
"--target=
$TARGET
"
COMMAND
=
"build"
# Download the rustlib folder from the relevant portion of main distribution's
# tarballs.
dir
=
rust-std-
$TARGET
pkg
=
rust-std
curl
-s
$MAIN_TARGETS
/
$pkg
-
$TRAVIS_RUST_VERSION
-
$TARGET
.tar.gz |
\
tar
xzf -
-C
$HOME
/rust/lib/rustlib
--strip-components
=
4
\
$pkg
-
$TRAVIS_RUST_VERSION
-
$TARGET
/
$dir
/lib/rustlib/
$TARGET
else
COMMAND
=
"test"
fi
cargo
$COMMAND
--manifest-path
=
openssl/Cargo.toml
$FLAGS
--features
"
$FEATURES
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment