Add CI test for Elm in travis (#40)

* test elm in travis

* install elm
This commit is contained in:
William Cheng 2018-05-15 09:58:37 +08:00 committed by GitHub
parent 67ebe17dd6
commit 7d9fb9f51e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

5
.gitignore vendored
View File

@ -206,5 +206,8 @@ samples/client/petstore/dart/petstore/packages
samples/client/petstore/dart/flutter_petstore/test/packages samples/client/petstore/dart/flutter_petstore/test/packages
samples/client/petstore/dart/petstore/test/packages samples/client/petstore/dart/petstore/test/packages
## JS # JS
samples/client/petstore/javascript/package-lock.json samples/client/petstore/javascript/package-lock.json
# elm
samples/client/petstore/elm/index.html

View File

@ -41,6 +41,7 @@ before_install:
- gem install bundler - gem install bundler
- npm install -g typescript - npm install -g typescript
- npm install -g npm - npm install -g npm
- npm install -g elm
- npm config set registry http://registry.npmjs.org/ - npm config set registry http://registry.npmjs.org/
# set python 3.6.3 as default # set python 3.6.3 as default
- source ~/virtualenv/python3.6/bin/activate - source ~/virtualenv/python3.6/bin/activate

View File

@ -848,8 +848,8 @@
</activation> </activation>
<modules> <modules>
<!-- clients --> <!-- clients -->
<!-- elm client not fully ready for CI yet <!-- elm client not fully ready for CI yet -->
<module>samples/client/petstore/elm</module>--> <module>samples/client/petstore/elm</module>
<module>samples/client/petstore/groovy</module> <module>samples/client/petstore/groovy</module>
<module>samples/client/petstore/rust</module> <module>samples/client/petstore/rust</module>
<!--<module>samples/client/petstore/perl</module>--> <!--<module>samples/client/petstore/perl</module>-->

View File

@ -33,7 +33,12 @@
<goal>exec</goal> <goal>exec</goal>
</goals> </goals>
<configuration> <configuration>
<executable>./elm-compile-test</executable> <executable>elm</executable>
<arguments>
<argument>make</argument>
<argument>--yes</argument>
<argument>src/Main.elm</argument>
</arguments>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>