diff options
| author | George Roman <george.roman.99@gmail.com> | 2018-06-07 18:59:23 +0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-07 19:32:57 -0300 |
| commit | cb33601267b32328f90660e15c648467fee0e6e8 (patch) | |
| tree | ec448f9a723f874cb5c5646b963a839d8263e3ea | |
| parent | 9b90461ff60a1fdbfe1f33cd9f425177893490e6 (diff) | |
| download | luarocks-cb33601267b32328f90660e15c648467fee0e6e8.tar.gz luarocks-cb33601267b32328f90660e15c648467fee0e6e8.tar.bz2 luarocks-cb33601267b32328f90660e15c648467fee0e6e8.zip | |
Run unit and integration tests as separate build stages on Travis
| -rw-r--r-- | .travis.yml | 107 |
1 files changed, 86 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml index d58ce43f..2b2e7a6c 100644 --- a/.travis.yml +++ b/.travis.yml | |||
| @@ -13,39 +13,113 @@ cache: | |||
| 13 | - test/testing_server-5.3 | 13 | - test/testing_server-5.3 |
| 14 | - test/testing_server-2.0 | 14 | - test/testing_server-2.0 |
| 15 | - test/testing_server-2.1 | 15 | - test/testing_server-2.1 |
| 16 | 16 | ||
| 17 | matrix: | 17 | unit_script: &unit_script |
| 18 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | ||
| 19 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | ||
| 20 | |||
| 21 | integration_script: &integration_script | ||
| 22 | - lua -v | ||
| 23 | - ./configure --with-lua=lua_install | ||
| 24 | - ./makedist scm | ||
| 25 | - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | ||
| 26 | - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | ||
| 27 | |||
| 28 | jobs: | ||
| 18 | include: | 29 | include: |
| 19 | - os: linux | 30 | # Unit tests for linux |
| 31 | - stage: unit | ||
| 32 | script: *unit_script | ||
| 33 | os: linux | ||
| 20 | env: | 34 | env: |
| 21 | - LUA="lua=5.1" | 35 | - LUA="lua=5.1" |
| 22 | - os: linux | 36 | - stage: unit |
| 37 | script: *unit_script | ||
| 38 | os: linux | ||
| 23 | env: | 39 | env: |
| 24 | - LUA="lua=5.2" | 40 | - LUA="lua=5.2" |
| 25 | - os: linux | 41 | - stage: unit |
| 42 | script: *unit_script | ||
| 43 | os: linux | ||
| 26 | env: | 44 | env: |
| 27 | - LUA="lua=5.3" | 45 | - LUA="lua=5.3" |
| 28 | - os: linux | 46 | - stage: unit |
| 47 | script: *unit_script | ||
| 48 | os: linux | ||
| 49 | env: | ||
| 50 | - LUA="luajit=2.1" | ||
| 51 | # Unit tests for osx | ||
| 52 | - stage: unit | ||
| 53 | script: *unit_script | ||
| 54 | os: osx | ||
| 55 | env: | ||
| 56 | - LUA="lua=5.1" | ||
| 57 | language: generic | ||
| 58 | - stage: unit | ||
| 59 | script: *unit_script | ||
| 60 | os: osx | ||
| 61 | env: | ||
| 62 | - LUA="lua=5.2" | ||
| 63 | language: generic | ||
| 64 | - stage: unit | ||
| 65 | script: *unit_script | ||
| 66 | os: osx | ||
| 67 | env: | ||
| 68 | - LUA="lua=5.3" | ||
| 69 | language: generic | ||
| 70 | - stage: unit | ||
| 71 | script: *unit_script | ||
| 72 | os: osx | ||
| 29 | env: | 73 | env: |
| 30 | - LUA="luajit=2.1" | 74 | - LUA="luajit=2.1" |
| 31 | - os: osx | ||
| 32 | language: generic | 75 | language: generic |
| 76 | # Integration tests for linux | ||
| 77 | - stage: integration | ||
| 78 | script: *integration_script | ||
| 79 | os: linux | ||
| 80 | env: | ||
| 81 | - LUA="lua=5.1" | ||
| 82 | - stage: integration | ||
| 83 | script: *integration_script | ||
| 84 | os: linux | ||
| 85 | env: | ||
| 86 | - LUA="lua=5.2" | ||
| 87 | - stage: integration | ||
| 88 | script: *integration_script | ||
| 89 | os: linux | ||
| 90 | env: | ||
| 91 | - LUA="lua=5.3" | ||
| 92 | - stage: integration | ||
| 93 | script: *integration_script | ||
| 94 | os: linux | ||
| 95 | env: | ||
| 96 | - LUA="luajit=2.1" | ||
| 97 | # Integration tests for osx | ||
| 98 | - stage: integration | ||
| 99 | script: *integration_script | ||
| 100 | os: osx | ||
| 33 | env: | 101 | env: |
| 34 | - LUA="lua=5.1" | 102 | - LUA="lua=5.1" |
| 35 | - os: osx | ||
| 36 | language: generic | 103 | language: generic |
| 104 | - stage: integration | ||
| 105 | script: *integration_script | ||
| 106 | os: osx | ||
| 37 | env: | 107 | env: |
| 38 | - LUA="lua=5.2" | 108 | - LUA="lua=5.2" |
| 39 | - os: osx | ||
| 40 | language: generic | 109 | language: generic |
| 110 | - stage: integration | ||
| 111 | script: *integration_script | ||
| 112 | os: osx | ||
| 41 | env: | 113 | env: |
| 42 | - LUA="lua=5.3" | 114 | - LUA="lua=5.3" |
| 43 | - os: osx | ||
| 44 | language: generic | 115 | language: generic |
| 116 | - stage: integration | ||
| 117 | script: *integration_script | ||
| 118 | os: osx | ||
| 45 | env: | 119 | env: |
| 46 | - LUA="luajit=2.1" | 120 | - LUA="luajit=2.1" |
| 47 | 121 | language: generic | |
| 48 | 122 | ||
| 49 | before_install: | 123 | before_install: |
| 50 | - if [ ! -f lua_install/bin/luarocks ]; then pip2 install hererocks; fi | 124 | - if [ ! -f lua_install/bin/luarocks ]; then pip2 install hererocks; fi |
| 51 | - if [ ! -f lua_install/bin/luarocks ]; then hererocks lua_install -r^ --$LUA; fi | 125 | - if [ ! -f lua_install/bin/luarocks ]; then hererocks lua_install -r^ --$LUA; fi |
| @@ -55,15 +129,6 @@ install: | |||
| 55 | - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi | 129 | - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi |
| 56 | - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi | 130 | - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi |
| 57 | 131 | ||
| 58 | script: | ||
| 59 | - lua -v | ||
| 60 | - ./configure --with-lua=lua_install | ||
| 61 | - ./makedist scm | ||
| 62 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | ||
| 63 | - busted -o gtest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | ||
| 64 | - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis" | ||
| 65 | - busted -o gtest --exclude-tags=git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full" | ||
| 66 | |||
| 67 | after_success: | 132 | after_success: |
| 68 | - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config | 133 | - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config |
| 69 | - cd $TRAVIS_BUILD_DIR/testrun/ && bash <(curl -s https://codecov.io/bash) | 134 | - cd $TRAVIS_BUILD_DIR/testrun/ && bash <(curl -s https://codecov.io/bash) |
