Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

macOS on Travis-CI #120

Closed
wants to merge 10 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 35 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: python

sudo: required
dist: trusty

group: edge

Expand All @@ -15,34 +14,59 @@ deploy:
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
on:
branch: master
condition: ${TRAVIS_OS_NAME} = "linux"
# condition: ${TRAVIS_PYTHON_VERSION} = "3.6"

python:
- "3.6"

before_install:
- sudo apt-get update -qq
matrix:
include:
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc
- gfortran
- libblas-dev
- liblapack-dev
- gcc-4.8
- gfortran-4.8
- pandoc
update: true

- os: osx
osx_image: xcode11
addons:
homebrew:
packages:
- gcc
- openblas
- lapack
- pandoc
update: true
language: shell # 'language: python' is an error on Travis CI macOS

install:
- sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev
- sudo apt-get install -qq gcc-4.8 gfortran-4.8
- sudo apt install pandoc
- sudo apt-get install python3-numpy
- pip3 install --upgrade pip
- pip3 install numpy
- pip3 install scipy
- pip3 install ase
- pip3 install pandas
- pip3 install scikit-learn
- pip3 install tensorflow
- pip install --upgrade attrs==19.1.0
- python3 setup.py build
- python3 setup.py install
- pip3 install --upgrade attrs==19.1.0
- pip3 install pytest
- pip3 install .
- pip3 install sphinx
- pip3 install nbsphinx
- pip3 install sphinx-rtd-theme
- cd ${TRAVIS_BUILD_DIR}/docs
- make html


before_script:
- cd ${TRAVIS_BUILD_DIR}/test/

Expand Down