-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (34 loc) · 1.73 KB
/
.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
before_install:
- sudo add-apt-repository -y ppa:gladky-anton/gnuplot
- sudo apt-get update -q
- sudo apt-get install -y gnuplot
# Fails because gnuplot is too old there.
#- sudo apt-get update -q
#- sudo apt-get install gnuplot-x11
after_success: |
# Push compiled website to gh-pages.
# See:http://stackoverflow.com/questions/23277391/how-to-publish-to-github-pages-from-travis-ci
if [ -n "$GITHUB_API_KEY" ]; then
cd "$TRAVIS_BUILD_DIR"
make web
cd web
git init
git checkout -b gh-pages
git add .
git -c user.name='travis' -c user.email='travis' commit -m init
git push -f -q https://cirosantilli:[email protected]/cirosantilli/gnuplot-examples-gh-pages gh-pages &2>/dev/null
cd "$TRAVIS_BUILD_DIR"
fi
script:
- gnuplot --version
- make zip
deploy:
# Deploy to GitHub releases whenever a tag is pushed.
# See: http://stackoverflow.com/questions/12343452/how-to-publish-artifacts-in-travis-ci?lq=1
provider: releases
api_key:
secure: "CXyM+zf35Jp/pBHd6VNq+f28ErfGQqhR3klorayXUx6mnITbJb0L+1kfWF3H9dMQc9sceHo3YPzLGlQp3UGtTWQbYAPqz1KQ5Sus2kTxc4aTeT5mdXaz3nZ8B6gkMC6Okwew6gyU6le35bxrJkc0NuXvKlYl92kYEMAconZLs5PY5ePGI6nr/t4NxfSUP3RKlFyx1+0GK+s3eViiKLR4aNMt774OUeZnzCmUOX617foVWWYN72jgXyPtBHe6IxogrUVkp4DoF0z2pcV/SwrNib56qTNk7YC7QSyhpW8LYlrCSNvVS0L/EvN5lTPmNFxcjouSCxAdp+t8g8j69c8Gnp35iz3Mpjsq/Lmh0WagEvBcpKU1u9cXf3jYBVWC0p7BK0X3A16BHCWbvA0rtoKlJJYKyHTrX3LiEiBc1Psb4jKtwLZkUgvML51JTl/vAEQQ0erN7EXP09xJouwmiB+gvCdBL+EWNV7jmTy9U1WLFWHzC6xeKc+ausXNCDd7xEwqXevJ1YrV/EQWM75TOOGKiEK8a56m/EEOiy8vixk7dkOHHmipe4qn1FiNNOHhrjWEo1O62RSNA6mociaMRJmnmaC4czqBC5TeTLfvjkmysO/7fKYJxndVDcX5652XBKT4aYjTkI9z7JwJ9ORddrmED5nGpmVRnjFUOMDTlU8GlT0="
file: gnuplot-examples.zip
skip_cleanup: true
on:
tags: true