Skip to content

Commit 077cba7

Browse files
committed
Add local docker based tests runner
1 parent 86bc286 commit 077cba7

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

run_rust_emacs_tests_docker.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
3+
echo "Testing Local files with Emacs 26 (latest)"
4+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:26.2-dev ./test-by-cp
5+
6+
echo Testing Local files with Emacs 25
7+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:25.3-dev ./test-by-cp
8+
9+
echo "Testing Local files with Emacs 24 (oldest)"
10+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:24.5-dev ./test-by-cp
11+
12+
echo "Testing commits with Emacs 26 (latest)"
13+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:26.2-dev ./test-from-git
14+
15+
echo Testing commits with Emacs 25
16+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:25.3-dev ./test-from-git
17+
18+
echo "Testing commits with Emacs 24 (oldest)"
19+
docker run -it --rm --name docker-cp -v `pwd`:/usr/src/app -w /usr/src/app --entrypoint=/bin/bash silex/emacs:24.5-dev ./test-from-git
20+
21+

test-by-cp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd ..
4+
mkdir copy
5+
cd copy
6+
cp -rf ../app/* .
7+
./run_rust_emacs_tests.sh

test-from-git

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
cd ..
4+
mkdir git
5+
cd git
6+
git clone ../app .
7+
./run_rust_emacs_tests.sh

0 commit comments

Comments
 (0)