-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
36 lines (29 loc) · 907 Bytes
/
.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
language: c
# Makes Travis clone the full repo so that the conda package can get the
# correct string from git describe and correctly label the package
git:
depth: false
dist: bionic
env:
global:
- MINICONDA_DIR=$HOME/miniconda
before_script:
# download miniconda
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh
- bash $HOME/miniconda.sh -b -p $MINICONDA_DIR
- source $MINICONDA_DIR/bin/activate $MINICONDA_DIR
- conda config --set always_yes yes
- conda config --set anaconda_upload yes
- conda install anaconda conda-build
jobs:
include:
- stage: build
name: Build
if: branch != master
script:
- conda build ./conda
- stage: build and deploy
name: Build and Deploy
if: branch = master
script:
- conda build ./conda --user $UPLOAD_USER --token $ANACONDA_API_TOKEN