-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
35 lines (29 loc) · 925 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
sudo: false
language: python
cache:
bundler: true
directories:
- node_modules # NPM packages
- $HOME/.cache/pip # python packages
before_install:
- rvm install 2.4.1
- openssl aes-256-cbc -K $encrypted_d44857a9a818_key -iv $encrypted_d44857a9a818_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 [email protected]:PyNorte/pyconamazonia2017-site.git
- git fetch origin -f gh-pages:gh-pages
install:
- gem install sass
- npm install gulp gulp-uglify gulp-concat gulp-sass
- 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