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

Simon Welsh's avatar
Simon Welsh committed
6
before_script:
7 8 9 10
  - echo 'assume_php=false' > .hhconfig
  - echo 'safe_array=true' >> .hhconfig
  - echo 'safe_vector_array=true' >> .hhconfig
  - echo 'enable_experimental_tc_features = safe_pass_by_ref, no_fallback_in_namespaces' >> .hhconfig
Simon Welsh's avatar
Simon Welsh committed
11
  - ./tests/composer.sh
12 13
  - composer install

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

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

30 31 32 33 34 35 36 37
hack-nightly:
  script:
    - hh_server --check .
  stage: typecheck
  image: hhvm/hhvm:nightly
  tags:
    - docker

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

46 47 48 49
phpunit:
  script:
    - hhvm vendor/bin/phpunit --bootstrap tests/HHITest.php tests/
  stage: test
50
  image: hhvm/hhvm:latest
Simon Welsh's avatar
Simon Welsh committed
51
  tags:
52
    - docker
53

54 55 56 57 58 59 60 61
phpunit-nightly:
  script:
    - hhvm vendor/bin/phpunit --bootstrap tests/HHITest.php tests/
  stage: test
  image: hhvm/hhvm:nightly
  tags:
    - docker

62
packagist:
63
  stage: deploy
64 65 66 67 68
  only:
    - tags
  script:
    - "curl -X POST \
       -H 'content-type:application/json' \
Simon Welsh's avatar
Simon Welsh committed
69 70
       \"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\"}}'"
71 72
  tags:
    - docker