.gitlab-ci.yml 1.06 KB
Newer Older
1 2 3 4 5
stages:
  - typecheck
  - test
  - deploy

Simon Welsh's avatar
Simon Welsh committed
6 7
before_script:
  - "echo 'assume_php=false' > .hhconfig"
Simon Welsh's avatar
Simon Welsh committed
8
  - echo 'enable_experimental_tc_features = safe_pass_by_ref' >> .hhconfig
Simon Welsh's avatar
Simon Welsh committed
9
  - ./tests/composer.sh
10 11
  - composer install

12 13 14 15
hack-min:
  script:
    - hh_server --check .
  stage: typecheck
16
  image: hhvm/hhvm:3.23.0
17 18
  tags:
    - docker
Simon Welsh's avatar
Simon Welsh committed
19

Simon Welsh's avatar
Simon Welsh committed
20 21
hack:
  script:
Simon Welsh's avatar
Simon Welsh committed
22
    - hh_server --check .
23
  stage: typecheck
24
  image: hhvm/hhvm:latest
25
  tags:
26
    - docker
27

28 29 30 31
phpunit-min:
  script:
    - hhvm vendor/bin/phpunit --bootstrap tests/HHITest.php tests/
  stage: test
32
  image: hhvm/hhvm:3.23.0
33 34
  tags:
    - docker
Simon Welsh's avatar
Simon Welsh committed
35

36 37 38 39
phpunit:
  script:
    - hhvm vendor/bin/phpunit --bootstrap tests/HHITest.php tests/
  stage: test
40
  image: hhvm/hhvm:latest
Simon Welsh's avatar
Simon Welsh committed
41
  tags:
42
    - docker
43 44

packagist:
45
  stage: deploy
46 47 48 49 50
  only:
    - tags
  script:
    - "curl -X POST \
       -H 'content-type:application/json' \
Simon Welsh's avatar
Simon Welsh committed
51 52
       \"https://packagist.org/api/update-package?username=simon_w&apiToken=$PACKAGIST_TOKEN\" \
       -d '{\"repository\":{\"url\":\"https://git.simon.geek.nz/91-carriage/phpunit-hhi.git\"}}'"
53 54
  tags:
    - docker