aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.travis.yml177
1 files changed, 0 insertions, 177 deletions
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b1872483..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,177 +0,0 @@
1language: python
2
3cache:
4 directories:
5 - lua_install
6 - testrun/testing_cache-5.1
7 - testrun/testing_cache-5.2
8 - testrun/testing_cache-5.3
9 - testrun/testing_cache-2.1
10 - testrun/testing_server-5.1
11 - testrun/testing_server-5.2
12 - testrun/testing_server-5.3
13 - testrun/testing_server-2.1
14 - testrun/binary-samples
15
16smoke_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
20
21lint_script: &lint_script
22 - luacheck .
23
24unit_script: &unit_script
25 - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
26 - busted -o htest --exclude-tags=git,integration --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
27
28integration_script: &integration_script
29 - lua -v
30 - if [ "$TRAVIS_OS_NAME" = "linux" ]; then shellcheck ./configure; fi
31 - ./configure --with-lua=lua_install
32 - ./makedist dev
33 - ./smoke_test.sh luarocks-dev.tar.gz
34 - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis"
35 - busted -o htest --exclude-tags=gpg,git,unit --verbose -Xhelper "lua_dir=$PWD/lua_install,travis,env=full"
36
37jobs:
38 include:
39 # Smoke tests for release branches
40 - stage: smoke
41 if: branch =~ ^[0-9].*
42 script: *smoke_script
43 os: linux
44 env:
45 - LUA="lua=5.3"
46 - stage: smoke
47 if: branch =~ ^[0-9].*
48 script: *smoke_script
49 os: osx
50 language: generic
51 env:
52 - LUA="luajit=2.1"
53 # Lint with Luacheck
54 - stage: Lint with Luacheck
55 script: *lint_script
56 os: linux
57 env:
58 - LUA="lua=5.3"
59 # Unit tests for linux
60 - stage: Unit on Linux
61 script: *unit_script
62 os: linux
63 env:
64 - LUA="lua=5.1"
65 - stage: Unit on Linux
66 script: *unit_script
67 os: linux
68 env:
69 - LUA="lua=5.2"
70 - stage: Unit on Linux
71 script: *unit_script
72 os: linux
73 env:
74 - LUA="lua=5.3"
75 - stage: Unit on Linux
76 script: *unit_script
77 os: linux
78 env:
79 - LUA="luajit=2.1"
80 # Integration tests for linux
81 - stage: Integration on Linux
82 script: *integration_script
83 os: linux
84 env:
85 - LUA="lua=5.1"
86 - stage: Integration on Linux
87 script: *integration_script
88 os: linux
89 env:
90 - LUA="lua=5.2"
91 - stage: Integration on Linux
92 script: *integration_script
93 os: linux
94 env:
95 - LUA="lua=5.3"
96 - stage: Integration on Linux
97 script: *integration_script
98 os: linux
99 env:
100 - LUA="luajit=2.1"
101 # Unit tests for mac
102 - stage: Unit on Mac
103 script: *unit_script
104 os: osx
105 env:
106 - LUA="lua=5.1"
107 language: generic
108 - stage: Unit on Mac
109 script: *unit_script
110 os: osx
111 env:
112 - LUA="lua=5.2"
113 language: generic
114 - stage: Unit on Mac
115 script: *unit_script
116 os: osx
117 env:
118 - LUA="lua=5.3"
119 language: generic
120 - stage: Unit on Mac
121 script: *unit_script
122 os: osx
123 env:
124 - LUA="luajit=2.1"
125 language: generic
126 # Integration tests for mac
127 - stage: Integration on Mac
128 script: *integration_script
129 os: osx
130 env:
131 - LUA="lua=5.1"
132 language: generic
133 - stage: Integration on Mac
134 script: *integration_script
135 os: osx
136 env:
137 - LUA="lua=5.2"
138 language: generic
139 - stage: Integration on Mac
140 script: *integration_script
141 os: osx
142 env:
143 - LUA="lua=5.3"
144 language: generic
145 - stage: Integration on Mac
146 script: *integration_script
147 os: osx
148 env:
149 - LUA="luajit=2.1"
150 language: generic
151
152before_install:
153 - if [ ! -f lua_install/bin/luarocks ]; then pip install hererocks; fi
154 - if [ ! -f lua_install/bin/luarocks ]; then hererocks lua_install -r^ --$LUA; fi
155 - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
156
157install:
158 - if [ ! -f lua_install/bin/busted ]; then luarocks install busted; fi
159 - if [ ! -f lua_install/bin/luacov ]; then luarocks install cluacov; fi
160 - if [ ! -f lua_install/bin/luacheck ]; then luarocks install luacheck; fi
161 - luarocks install busted-htest
162
163after_success:
164 - luacov -c $TRAVIS_BUILD_DIR/testrun/luacov.config
165 - cd $TRAVIS_BUILD_DIR/testrun/ && bash <(curl -s https://codecov.io/bash)
166 - grep "Summary" -B1 -A1000 $TRAVIS_BUILD_DIR/testrun/luacov.report.out
167
168notifications:
169 email:
170 on_success: change
171 on_failure: change
172 webhooks:
173 urls:
174 - https://webhooks.gitter.im/e/3320fc3f28abbb06e1d8
175 on_success: change
176 on_failure: always
177 on_start: never