-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (24 loc) · 852 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
sudo: required
dist: trusty
group: edge
language: ruby
services:
- docker
cache:
directories:
- $HOME/stack-cache
- $HOME/stack-work
install:
- mkdir -p $HOME/stack-cache
- mkdir -p $HOME/artifacts
- mkdir -p $HOME/stack-work
- cd web && docker build --tag cirrusbuild .
script:
- docker run -v $HOME/stack-cache:/root/.stack -v $HOME/.stack-work:/build/.stack-work -v $HOME/artifacts:/root/.local/bin cirrusbuild /bin/sh -c 'cd /build && stack install --allow-different-user'
- cp $HOME/artifacts/jupyter-proxy deploy/jupyter-proxy
- mkdir -p deploy/config
- cp config/{routes,settings.yml,models,favicon.ico,robots.txt} deploy/config/
- cp -R static deploy/
- cd deploy && docker build --tag eanalytica/cirrus-web:latest .
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push eanalytica/cirrus-web