Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 94f170c

Browse files
committed
Use local latest FreeBSD repository
1 parent b81e2bb commit 94f170c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.cirrus.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@ freebsd_build_task:
1212
env:
1313
matrix:
1414
- abi: freebsd:11:x86:64
15+
REPOS_DIR: .cirrus/pkg/repos
1516
- abi: freebsd:11:x86:32
1617
jail_name: j11i386
1718
exec_prefix: cbsd jexec jname=j11i386
19+
working_dir: /etc/skel
20+
REPOS_DIR: /etc/skel/.cirrus/pkg/repos
1821

1922
env:
2023
GH_API_TOKEN: ENCRYPTED[5e482f417304528148bb96eca8d030eacd6ab9972d482485fc4d42907283b995f658b351e0676e9493a37d815398f541]
21-
A pkg_latest: pkg -R "${CIRRUS_WORKING_DIR}/.cirrus/pkg/repos"
2224

2325
prepare_script:
24-
- $pkg_latest update -f;
26+
- pkg update -f;
2527
- |
2628
if test "$abi" = "freebsd:11:x86:32"; then
2729
$pkg_latest -y cbsd
2830
./scripts/configure_freebsd_ci_jail.sh $jail_name $CIRRUS_WORKING_DIR;
29-
$exec_prefix $pkg_latest update -f;
31+
$exec_prefix pkg update -f
3032
fi
31-
- $exec_prefix $pkg_latest install -y "${package}" python2
33+
- $exec_prefix pkg install -y "${package}" python2
3234
- $exec_prefix node --version
3335
- $exec_prefix npm --version
3436
- $exec_prefix clang++ --version
3537

3638
build_script:
3739
- |
38-
if test "$abi" = "freebsd:11:x86:32"; then
39-
changeDir="cd /etc/skel &&"
40-
fi
41-
echo "$changeDir npm install --unsafe-perm" | $exec_prefix /bin/sh
40+
[ -n "$working_dir} ] && change_dir="cd ${working_dir} &&"
41+
echo "$change_dir npm install --unsafe-perm" | $exec_prefix /bin/sh
4242
4343
publish_script:
4444
- |

0 commit comments

Comments
 (0)