Skip to content

Commit

Permalink
[ci] add macos 12 aka xcode14 for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed May 7, 2024
1 parent 9da26b1 commit 9a1bd14
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
language: generic

jobs:
include:
- os: osx
arch: amd64
osx_image: xcode14.2

env:
- LISP: sbcl

install:
- echo $PWD
- ls
- bash <(curl -s https://raw.githubusercontent.com/digikar99/lisp-travis-lite/master/run.sh)

script:
- echo $PATH

- ls
- echo Testing without numpy
- python3 -m venv ./py4cl2-cffi/
- source ./py4cl2-cffi/bin/activate
- cl --eval '(push (pathname "./") ql:*local-project-directories*)' --eval '(ql:quickload "py4cl2-cffi")' --eval '(assert (= 5 (py4cl2-cffi:pyeval 5)))' --eval '(print py4cl2-cffi:*internal-features*)'

- echo Download download-dependencies
- git clone https://github.com/digikar99/download-dependencies $HOME/quicklisp/local-projects/download-dependencies

- echo Download Tests
- git clone https://github.com/digikar99/py4cl2-cffi-tests $HOME/quicklisp/local-projects/py4cl2-cffi-tests

- echo Download Test Dependencies
- |
cl --eval '(ql:quickload "download-dependencies")' \
--eval '(in-package :download-dependencies)' \
--eval '(push (pathname "./") ql:*local-project-directories*)' \
--eval '(let ((*dependencies-home* (first ql:*local-project-directories*))) (ensure-system "py4cl2-cffi-tests"))'
- echo Installing python modules
- pip install --upgrade pip
- pip3 install numpy
- pip3 install networkx
- pip3 install matplotlib

- echo Compiling Tests
- cl --load "ci-pre-test.lisp"

# Testing it on the second load confirms that functionalities do not
# solely eval-when compile-toplevel, and that they persist across multiple loads.
- echo Running Tests
- cl --load "ci-test.lisp" || cl --load "ci-test.lisp"




notifications:
email: false
7 changes: 6 additions & 1 deletion ci-pre-test.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
(format t "~%Executing ~S~%" ',form)
,form
(format t "~%DONE Executing ~S~%" ',form)))
(ql:quickload "py4cl2-cffi-tests")
(print-and-call (ql:quickload "py4cl2-cffi"))
(print-and-call (py4cl2-cffi:pystart))
(print-and-call (py4cl2-cffi:import-module "math"))
(print-and-call (py4cl2-cffi:defpymodule "math" nil
:continue-ignoring-errors nil))
(print-and-call (ql:quickload "py4cl2-cffi-tests"))
(uiop:quit 0)

0 comments on commit 9a1bd14

Please sign in to comment.