-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,280 changed files
with
155,428 additions
and
146,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,21 @@ jobs: | |
- image: circleci/python:2.7 | ||
environment: | ||
ARCH: i686 | ||
JULIA_CPU_CORES: 4 | ||
JULIA_CPU_THREADS: 4 | ||
JULIA_TEST_MAXRSS_MB: 800 | ||
steps: &steps | ||
- run: | # install build dependencies | ||
sudo apt-get install -y g++-4.8-multilib gfortran-4.8-multilib \ | ||
sudo apt-get install -y g++-6-multilib gfortran-6-multilib \ | ||
time ccache bar && | ||
for prog in gcc g++ gfortran; do | ||
sudo ln -s /usr/bin/$prog-4.8 /usr/local/bin/$prog; | ||
sudo ln -s /usr/bin/$prog-6 /usr/local/bin/$prog; | ||
done | ||
- checkout # circle ci code checkout step | ||
# (FIXME: need to unset url."ssh://[email protected]".insteadOf or libgit2 tests fail) | ||
- run: | # checkout merge commit, set versioning info and Make.user variables | ||
git config --global --unset url."ssh://[email protected]".insteadOf && | ||
if [ -n "$CIRCLE_PULL_REQUEST" ]; then | ||
git remote set-url origin [email protected]:JuliaLang/julia.git && | ||
git fetch origin +refs/pull/$(basename $CIRCLE_PULL_REQUEST)/merge && | ||
git checkout -qf FETCH_HEAD; | ||
fi && | ||
|
@@ -42,22 +43,27 @@ jobs: | |
contrib/download_cmake.sh && | ||
make -j3 -C deps || make | ||
- run: | # build julia, output ccache stats when done | ||
make -j3 all && | ||
make -j3 release && | ||
make prefix=/tmp/julia install && | ||
ccache -s && | ||
make build-stats | ||
- run: | # move source tree out of the way, run tests from install tree | ||
COMMIT_RANGE=$(echo "${CIRCLE_COMPARE_URL}" | cut -d/ -f7) && | ||
[[ "$COMMIT_RANGE" != *"..."* ]] && COMMIT_RANGE="${COMMIT_RANGE}...${COMMIT_RANGE}"; | ||
FILES_CHANGED=$(git diff --name-only $COMMIT_RANGE -- || git ls-files) && | ||
cd .. && | ||
mv project julia-src && | ||
/tmp/julia/bin/julia -e 'versioninfo()' && | ||
/tmp/julia/bin/julia -e 'Base.require(Main, :InteractiveUtils).versioninfo()' && | ||
/tmp/julia/bin/julia --sysimage-native-code=no -e 'true' && | ||
/tmp/julia/bin/julia-debug --sysimage-native-code=no -e 'true' && | ||
#/tmp/julia/bin/julia-debug --sysimage-native-code=no -e 'true' && | ||
pushd /tmp/julia/share/julia/test && | ||
/tmp/julia/bin/julia --check-bounds=yes runtests.jl all --skip socket | bar -i 30 && | ||
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online download pkg && | ||
if [ $(echo "$FILES_CHANGED" | grep -cv '^doc/') -gt 0 ]; then | ||
/tmp/julia/bin/julia --check-bounds=yes runtests.jl all --skip Sockets | bar -i 30 && | ||
/tmp/julia/bin/julia --check-bounds=yes runtests.jl LibGit2/online Pkg/pkg download; | ||
fi && | ||
popd && | ||
mkdir /tmp/embedding-test && | ||
make check -C /tmp/julia/share/doc/julia/examples/embedding \ | ||
make check -C /tmp/julia/share/julia/test/embedding \ | ||
JULIA=/tmp/julia/bin/julia BIN=/tmp/embedding-test \ | ||
"$(cd julia-src && make print-CC)" && | ||
mv julia-src project | ||
|
@@ -75,6 +81,6 @@ jobs: | |
- image: circleci/python:2.7 | ||
environment: | ||
ARCH: x86_64 | ||
JULIA_CPU_CORES: 4 | ||
JULIA_CPU_THREADS: 4 | ||
JULIA_TEST_MAXRSS_MB: 800 | ||
steps: *steps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#!/bin/sh | ||
# FreeBSD CI Build Scripts | ||
# The flow of a FreeBSD CI (https://freebsdci.julialang.org) build: | ||
# | ||
# 1. `cleanup` | ||
# 2. `compile` | ||
# 3. `build-state` | ||
# 4. `runtests` | ||
# 5. `test-embedding` | ||
# | ||
# Detail of flow is controlled by the variable `factory` | ||
# here. | ||
# https://github.com/iblis17/julia-fbsd-buildbot/blob/master/master/master.cfg | ||
# | ||
# Usage: .freebsdci.sh <stage> | ||
|
||
set -xe | ||
|
||
build-state(){ | ||
gmake build-stats | ||
} | ||
|
||
cleanup(){ | ||
git clean -fdx | ||
} | ||
|
||
compile(){ | ||
export MALLOC_CONF='junk:false' | ||
export VERBOSE=1 | ||
export FORCE_ASSERTIONS=1 | ||
export LLVM_ASSERTIONS=1 | ||
export USECCACHE=1 | ||
|
||
gmake check-whitespace | ||
gmake release -j $MAKE_JOBS_NUMBER | ||
} | ||
|
||
runtests(){ | ||
export MALLOC_CONF='junk:false' | ||
export VERBOSE=1 | ||
export FORCE_ASSERTIONS=1 | ||
export LLVM_ASSERTIONS=1 | ||
export JULIA_TEST_MAXRSS_MB=600 | ||
export JULIA_CPU_THREADS=$MAKE_JOBS_NUMBER | ||
|
||
./usr/bin/julia --check-bounds=yes test/runtests.jl all | ||
./usr/bin/julia --check-bounds=yes test/runtests.jl \ | ||
LibGit2/online Pkg/pkg download | ||
} | ||
|
||
test-embedding(){ | ||
export JULIA='../../julia' | ||
export BIN='../../tmp' | ||
|
||
mkdir -vp tmp | ||
gmake -C test embedding | ||
} | ||
|
||
|
||
if [ -z $1 ] | ||
then | ||
exit 1 | ||
fi | ||
|
||
$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# treat patches as files that should not be modified | ||
*.patch -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Julia Community Standards | ||
========================= | ||
|
||
The Julia community is committed to maintaining a welcoming, civil and constructive environment. We expect the following standards to be observed and upheld by all participants in any community forum (mailing lists, GitHub, IRC, etc.). | ||
|
||
**Be respectful and inclusive.** | ||
Please do not use overtly sexual language or imagery, and do not attack anyone based on any aspect of personal identity, including gender, sexuality, religion, ethnicity, race, age or ability. Keep in mind that what you write in public forums is read by many people who don't know you personally, so please refrain from making prejudiced or sexual jokes and comments – even ones that you might consider acceptable in private. Ask yourself if a comment or statement might make someone feel unwelcomed or like an outsider. | ||
|
||
In particular, do not sexualize the term "Julia" or any other aspects of the project. While "Julia" is a female name in many parts of the world, the programming language is not a person and does not have a gender. | ||
|
||
**Give credit.** | ||
All participants in the Julia community are expected to respect copyright laws and ethical attribution standards. This applies to both code and written materials, such as documentation or blog posts. Materials that violate the law, are plagiaristic, or ethically dubious in some way will be removed from officially-maintained lists of resources. | ||
|
||
If you believe one of these standards has been violated, you can either file an issue on an appropriate repository or confidentially contact the [Julia Stewards](https://julialang.org/community/stewards/) at [[email protected]](mailto:[email protected]). Keep in mind that most mistakes are due to ignorance rather than malice. | ||
|
||
**Be concise.** | ||
Constructive criticism and suggestions are welcome, but high-traffic forums do not generally have the bandwidth for extensive discourse. Consider writing a blog post if you feel that you have enough to say on a particular subject. | ||
|
||
**Get involved.** | ||
The Julia community is built on a foundation of reciprocity and collaboration. Be aware that most community members contribute on a voluntary basis, so ideas and bug reports are ok, but demands are not. Pull requests are always welcomed – see the [guidelines for contributing](https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md) to read about how to get started. | ||
|
||
**Any concerns?** | ||
If you have a conflict or concern that requires resolution, please contact the [Julia Community Stewards](https://julialang.org/community/stewards/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.