This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
55 lines (50 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: cpp
dist: trusty
sudo: required
group: edge
compiler: clang
matrix:
include:
# OSX / Clang
- os: osx
osx_image: xcode9.2
env: [COMPILER=clang++, CXX=clang++, CC=clang]
# Linux / Clang
- os: linux
env: [COMPILER=clang++-5.0, CXX=clang++, CC=clang]
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['g++-7', 'clang-5.0']
install:
- |
# conda
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda update -q conda
conda install conda-build=2 anaconda-client
conda update -q conda-build
script:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
#conda install cmake openmpi=1.6.3 python=3
# CXX=clang++ CC=clang cmake . -DENABLE_MPI=on
# make faunus
# make tests
# make test
cd scripts/
conda config --set anaconda_upload yes
conda-build --user teokem --token "${CONDA_UPLOAD_TOKEN}" .
else
cd scripts/
conda config --set anaconda_upload yes
conda-build --user teokem --token "${CONDA_UPLOAD_TOKEN}" .
fi