diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index aca8460a..72b74825 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -12,6 +12,11 @@ cache: | |||
12 | - testrun/testing_server-5.3 | 12 | - testrun/testing_server-5.3 |
13 | - testrun/testing_server-2.1 | 13 | - testrun/testing_server-2.1 |
14 | - testrun/binary-samples | 14 | - testrun/binary-samples |
15 | |||
16 | smoke_script: &smoke_script | ||
17 | - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) | ||
18 | - ./makedist $BRANCH | ||
19 | - ./smoke_test.sh luarocks-$BRANCH.tar.gz | ||
15 | 20 | ||
16 | unit_script: &unit_script | 21 | unit_script: &unit_script |
17 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | 22 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" |
@@ -27,6 +32,20 @@ integration_script: &integration_script | |||
27 | 32 | ||
28 | jobs: | 33 | jobs: |
29 | include: | 34 | include: |
35 | # Smoke tests for release branches | ||
36 | - stage: smoke | ||
37 | if: branch =~ [0-9].* | ||
38 | script: *smoke_script | ||
39 | os: linux | ||
40 | env: | ||
41 | - LUA="lua=5.3" | ||
42 | - stage: smoke | ||
43 | if: branch =~ [0-9].* | ||
44 | script: *smoke_script | ||
45 | os: osx | ||
46 | language: generic | ||
47 | env: | ||
48 | - LUA="luajit=2.1" | ||
30 | # Unit tests for linux | 49 | # Unit tests for linux |
31 | - stage: Unit on Linux | 50 | - stage: Unit on Linux |
32 | script: *unit_script | 51 | script: *unit_script |