-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New lightweight toolbox-based setup.
- Loading branch information
Showing
4 changed files
with
78 additions
and
38 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
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,67 @@ | ||
# This file was generated from `meta.yml`, please do not edit manually. | ||
# Follow the instructions on https://github.com/coq-community/templates to regenerate. | ||
|
||
os: linux | ||
dist: bionic | ||
language: shell | ||
|
||
.opam: &OPAM | ||
language: shell | ||
services: docker | ||
install: | | ||
# Prepare the COQ container | ||
docker pull ${COQ_IMAGE} | ||
docker run -d -i --init --name=COQ -v ${TRAVIS_BUILD_DIR}:/home/coq/${PACKAGE} -w /home/coq/${PACKAGE} ${COQ_IMAGE} | ||
docker exec COQ /bin/bash --login -c " | ||
# This bash script is double-quoted to interpolate Travis CI env vars: | ||
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 update -y | ||
opam pin add ${PACKAGE} . -y -n -k path | ||
opam install ${PACKAGE} -y -j ${NJOBS} --deps-only | ||
opam config list | ||
opam repo list | ||
opam list | ||
" | ||
script: | ||
- echo -e "${ANSI_YELLOW}Building ${PACKAGE}...${ANSI_RESET}" && echo -en 'travis_fold:start:script\\r' | ||
- | | ||
docker exec COQ /bin/bash --login -c " | ||
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m ' | ||
set -ex | ||
sudo chown -R coq:coq /home/coq/${PACKAGE} | ||
opam install ${PACKAGE} -v -y -j ${NJOBS} | ||
" | ||
- docker stop COQ # optional | ||
- echo -en 'travis_fold:end:script\\r' | ||
|
||
.nix: &NIX | ||
language: nix | ||
nix: 2.3.7 | ||
sudo: false | ||
install: | ||
# for cachix we need travis to be a trusted nix user | ||
- echo "trusted-users = $USER" | sudo tee -a /etc/nix/nix.conf | ||
- sudo systemctl restart nix-daemon | ||
- nix-env -iA nixpkgs.cachix | ||
- cachix use coq | ||
- cachix use coq-community | ||
- cachix use math-comp | ||
script: | ||
- nix-build https://coq.inria.fr/nix/toolbox --argstr job "aac-tactics" --arg override "{coq = \"$COQ\";}" | ||
jobs: | ||
include: | ||
|
||
# Test supported versions of Coq via Nix | ||
- env: | ||
- COQ=master | ||
<<: *NIX | ||
|
||
# Test supported versions of Coq via OPAM | ||
- env: | ||
- COQ_IMAGE=coqorg/coq:dev | ||
- PACKAGE=coq-aac-tactics.dev | ||
- NJOBS=2 | ||
<<: *OPAM | ||
|
This file was deleted.
Oops, something went wrong.
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