forked from pythonbrasil/pybr2017-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (25 loc) · 782 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
sudo: false
language: python
before_install:
- openssl aes-256-cbc -K $encrypted_efc81948d3a6_key -iv $encrypted_efc81948d3a6_iv -in publish-key.enc -out ~/.ssh/publish-key -d
- chmod u=rw,og= ~/.ssh/publish-key
- echo "Host github.com" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/publish-key" >> ~/.ssh/config
- git remote set-url origin git@github.com:pythonbrasil/pythonbrasil12-site.git
- git fetch origin -f gh-pages:gh-pages
install:
- gem install sass
- cd theme
- npm install -g
- cd ..
- pip install --upgrade pip
- pip install -r requirements.txt
script:
# tenta construir o site, vai falhar caso haja algum erro
- make publish
deploy:
provider: script
script: make github ping
on:
branch: master
condition: $TRAVIS_PULL_REQUEST = false