Overview
Comment:Add basic unit tests + support for travis-ci
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 318c6e79deb172a0aa020d05599dec7ed1f4b1e1
User & Date: bohwaz on 2017-03-06 21:55:09
Other Links: branch diff | manifest | tags
Context
2017-03-06
22:47
More tests check-in: e52e9de6bf user: bohwaz tags: dev
21:55
Add basic unit tests + support for travis-ci check-in: 318c6e79de user: bohwaz tags: dev
2017-03-03
04:31
Adaptations pour installations sans vhost check-in: 34f1936f98 user: bohwaz tags: dev
Changes

Added .travis.yml version [c571b01c05].

















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: php
php:
  - '5.4'
  - '5.5'
  - '5.6'
  - '7.0'
  - '7.1'
  - hhvm

before_script:
  - cd src && make deps

script:
  - php tests/run.php

notifications:
  irc:
    channels:
      - "irc.freenode.net#garradin"
    template:
      - "%{build_number} by %{author} on %{branch}: %{message} "
      - "Build details: %{build_url}"
    use_notice: false
    skip_join: true

Modified src/Makefile from [2766485477] to [719a15c730].

1
2
3
4
5
6
7
8
9

10
11
KD2_BRANCH=trunk

deps:
	$(eval TMP_KD2=$(shell mktemp -d))
	cd ${TMP_KD2}

	wget https://fossil.kd2.org/kd2fw/zip/KD2+Framework-${KD2_BRANCH}.zip -O ${TMP_KD2}/kd2.zip
	unzip "${TMP_KD2}/kd2.zip" -d ${TMP_KD2}


	mv "${TMP_KD2}/KD2 Framework-${KD2_BRANCH}/src/lib/kd2" "include/lib/KD2"
	rm -rf ${TMP_KD2}
|



|

|


>


1
2
3
4
5
6
7
8
9
10
11
12
KD2_BRANCH=dev

deps:
	$(eval TMP_KD2=$(shell mktemp -d))
	#cd ${TMP_KD2}

	wget https://fossil.kd2.org/kd2fw/zip/KD2+Framework-${KD2_BRANCH}.zip?uuid=${KD2_BRANCH} -O ${TMP_KD2}/kd2.zip
	unzip "${TMP_KD2}/kd2.zip" -d ${TMP_KD2}

	rm -rf "include/lib/KD2"
	mv "${TMP_KD2}/KD2 Framework-${KD2_BRANCH}/src/lib/kd2" "include/lib/KD2"
	rm -rf ${TMP_KD2}

Name change from tests/01-installation.js to tests/phantom/01-installation.js.

Name change from tests/10-login.js to tests/phantom/10-login.js.

Name change from tests/11-add-member.js to tests/phantom/11-add-member.js.

Name change from tests/12-edit-member.js to tests/phantom/12-edit-member.js.

Name change from tests/13-delete-member.js to tests/phantom/13-delete-member.js.

Name change from tests/14-add-cotisation.js to tests/phantom/14-add-cotisation.js.

Name change from tests/README to tests/phantom/README.

Name change from tests/run.sh to tests/phantom/run.sh.

Name change from tests/syntax.sh to tests/phantom/syntax.sh.

Added tests/run.php version [49efa42f1e].



















>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
<?php

namespace Garradin;

use KD2\Test;

require __DIR__ . '/../src/include/init.php';

Test::assert(garradin_version());