Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai committed May 26, 2020
1 parent 3db4713 commit 17d623c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ language: shell
echo \"Build triggered by ${TRAVIS_EVENT_TYPE}\"
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
set -ex # -e = exit on failure; -x = trace for debug
opam repo -a --set-default add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam update -y
opam pin add ${PACKAGE} . -y -n -k path
opam install ${PACKAGE} -y -j ${NJOBS} --deps-only
Expand Down
4 changes: 3 additions & 1 deletion config.yml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run:
name: Install dependencies
command: |
opam repo -a add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam repo -a --set-default add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam update
opam install --deps-only .
- run:
Expand All @@ -33,6 +33,7 @@ jobs:
- run:
name: Build, test, and install package
command: opam install -t .
{{# ci_test_dependants }}
- run:
name: Test dependants
command: |
Expand All @@ -41,6 +42,7 @@ jobs:
if ! [ -z "$PACKAGES" ]
then opam install -t $PACKAGES
fi
{{/ ci_test_depentants }}
- run:
name: Uninstall package
command: opam uninstall .
Expand Down
9 changes: 9 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ for f in "$srcdir"/{,.}*.mustache; do
continue
fi
;;
config.yml)
mustache='{{ circleci }}'
bool=$(get_yaml meta.yml <<<"$mustache")
if [ -n "$bool" ] && [ "$bool" != false ]; then
mkdir -p -v .circleci && target=".circleci/$target"
else
continue
fi
;;
default.nix)
mustache='{{ tested_coq_nix_versions }}'
bool=$(get_yaml meta.yml <<<"$mustache")
Expand Down

0 comments on commit 17d623c

Please sign in to comment.