Skip to content

Commit b18bc4f

Browse files
committed
checkout merge commit
delete not-so-relevant comments (resource_class would be relevant if we started paying circle, other lines relevant for using ubuntu docker image
1 parent 4330059 commit b18bc4f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

circle.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ workflows:
99
jobs:
1010
build-i686:
1111
docker:
12-
# - image: ubuntu:14.04
1312
- image: circleci/python:2.7
1413
environment:
1514
JULIA_CPU_CORES: 6
1615
JULIA_TEST_MAXRSS_MB: 800
1716
ARCH: i686
18-
# resource_class: xlarge
1917
steps: &steps
20-
# apt-get update &&
21-
# curl make patch m4 xz-utils git time ccache bar
2218
- run: | # install build dependencies
2319
sudo apt-get install -y g++-4.8-multilib gfortran-4.8-multilib \
2420
time ccache bar &&
2521
for prog in gcc g++ gfortran; do
2622
sudo ln -s /usr/bin/$prog-4.8 /usr/local/bin/$prog;
2723
done
28-
- checkout # circle ci code checkout step - TODO checkout PR merge commit
24+
- checkout # circle ci code checkout step
2925
# (FIXME: need to unset url."ssh://[email protected]".insteadOf or libgit2 tests fail)
30-
- run: | # set versioning info and Make.user variables
26+
- run: | # checkout merge commit, set versioning info and Make.user variables
3127
git config --global --unset url."ssh://[email protected]".insteadOf &&
28+
if [ -n "$CIRCLE_PR_NUMBER" ]; then
29+
git fetch origin +refs/pull/$CIRCLE_PR_NUMBER/merge &&
30+
git checkout -qf FETCH_HEAD;
31+
fi &&
3232
make -C base version_git.jl.phony &&
3333
echo "override ARCH = $ARCH" | tee -a Make.user &&
3434
for var in FORCE_ASSERTIONS LLVM_ASSERTIONS USECCACHE NO_GIT; do
@@ -38,7 +38,7 @@ jobs:
3838
- restore_cache: # silly to take a checksum of the tag file here instead of
3939
keys: # its contents but this is the only thing that works on circle
4040
- ccache-{{ checksum "/tmp/weeknumber" }}
41-
- run: | # build deps
41+
- run: | # compile julia deps
4242
contrib/download_cmake.sh &&
4343
make -j8 -C deps || make
4444
- run: | # build julia, output ccache stats when done
@@ -72,11 +72,9 @@ jobs:
7272

7373
# build-x86_64:
7474
# docker:
75-
# - image: ubuntu:14.04
7675
# - image: circleci/python:2.7
7776
# environment:
7877
# JULIA_CPU_CORES: 6
7978
# JULIA_TEST_MAXRSS_MB: 800
8079
# ARCH: x86_64
81-
# resource_class: xlarge
8280
# steps: *steps

0 commit comments

Comments
 (0)