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 438fe40
Showing 1 changed file with 57 additions and 0 deletions.
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

0 comments on commit 438fe40

Please sign in to comment.