-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
61 lines (52 loc) · 1.37 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: python
sudo: false
env:
- LUA="5.3.1" EE_BRANCH="master"
before_install:
- pip install hererocks
- hererocks lua_install -rlatest -l${LUA}
- export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
- gem install bundler
install:
# - luarocks install luacheck
- luarocks install busted
- luarocks install luacov
- luarocks install dkjson
# - luarocks install luacov-coveralls
- wget "https://raw.githubusercontent.com/daid/EmptyEpsilon/${EE_BRANCH}/scripts/utils.lua" -O utils.lua
- bundle install --gemfile=docs/Gemfile
- pip install -r docs/requirements.txt
script:
# - luacheck --no-unused-args --std max+busted *.lua spec
- cd $TRAVIS_BUILD_DIR
- busted --run=integration
- cd $TRAVIS_BUILD_DIR/docs
- rake
- cd $TRAVIS_BUILD_DIR
- ./create_release.sh
after_success:
# - luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
- bash <(curl -s https://codecov.io/bash)
branches:
except:
- gh-pages
notifications:
email:
on_success: change
on_failure: always
deploy:
- provider: pages
skip-cleanup: true
local-dir: docs/_build/
target-branch: gh-pages
keep-history: false
github-token: $GITHUB_TOKEN
on:
branch: master
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: "release-*"
skip_cleanup: true
on:
tags: true