-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.travis.yml
39 lines (39 loc) · 896 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
37
38
39
language: minimal
sudo: required
branches:
only:
- master
services:
- docker
script:
- docker pull shepmaster/omnibus || true
- docker build . -t shepmaster/omnibus --cache-from shepmaster/omnibus
- >
if [[ -n "$DOCKER_PASSWORD" ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push shepmaster/omnibus
fi
- >
docker run
-it
--rm
-v $PWD/cargo:/root/.cargo/registry
shepmaster/omnibus
make -C /omnibus/examples
- >
docker run
-it
--rm
-v $PWD/built-site:/built-site
shepmaster/omnibus
bash -c 'cd /omnibus/site && bundle && jekyll build --destination /built-site --config _config.yml,_config.prod.yml'
cache:
directories:
- $HOME/cargo
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: built-site
on:
branch: master